class PhpFixerRunner (View source)

Wrapper to PHP-CS-Fixer.

Properties

protected PhpFixerRuleResolver $ruleResolver
protected EventDispatcher $eventDispatcher
protected array $steps
protected ErrorsManager $errorManager
private string|null $phpCSFixerVersion

Methods

__construct(PhpFixerRuleResolver $ruleResolver, EventDispatcher $eventDispatcher)

No description

$this
addStep(PhpFixerOptions $options, array $paths, int $flags)

No description

$this
resetSteps()

No description

ErrorsManager
getErrorManager()

No description

int
calculateNumberOfFiles()

No description

array
apply(bool $dryRun)

No description

array|void[]|null[]|string[][]|string[][][]
applyStep(PhpFixerOptions $options, Traversable $finder, int $flags, bool $dryRun)

No description

Finder
createFinder(PhpFixerOptions $options, array $paths)

No description

CacheManagerInterface
createCacheManager(PhpFixerOptions $options, int $flags, bool $dryRun, array $rules)

No description

string
getCacheFilename(PhpFixerOptions $options, int $flags)

No description

resetErrors()

No description

string
getPhpCSFixerVersion()

No description

expandFinder(int $stepIndex)

No description

Details

__construct(PhpFixerRuleResolver $ruleResolver, EventDispatcher $eventDispatcher)

No description

Parameters

PhpFixerRuleResolver $ruleResolver
EventDispatcher $eventDispatcher

EventDispatcher getEventDispatcher()

No description

Return Value

EventDispatcher

$this addStep(PhpFixerOptions $options, array $paths, int $flags)

No description

Parameters

PhpFixerOptions $options
array $paths
int $flags

Return Value

$this

$this resetSteps()

No description

Return Value

$this

ErrorsManager getErrorManager()

No description

Return Value

ErrorsManager

int calculateNumberOfFiles()

No description

Return Value

int

array apply(bool $dryRun)

No description

Parameters

bool $dryRun

Return Value

array

protected array|void[]|null[]|string[][]|string[][][] applyStep(PhpFixerOptions $options, Traversable $finder, int $flags, bool $dryRun)

No description

Parameters

PhpFixerOptions $options
Traversable $finder
int $flags
bool $dryRun

Return Value

array|void[]|null[]|string[][]|string[][][]

protected Finder createFinder(PhpFixerOptions $options, array $paths)

No description

Parameters

PhpFixerOptions $options
array $paths

Return Value

Finder

protected CacheManagerInterface createCacheManager(PhpFixerOptions $options, int $flags, bool $dryRun, array $rules)

No description

Parameters

PhpFixerOptions $options
int $flags
bool $dryRun
array $rules

Return Value

CacheManagerInterface

protected string getCacheFilename(PhpFixerOptions $options, int $flags)

No description

Parameters

PhpFixerOptions $options
int $flags

Return Value

string

protected resetErrors()

No description

protected string getPhpCSFixerVersion()

No description

Return Value

string

private expandFinder(int $stepIndex)

No description

Parameters

int $stepIndex