class PhpFixerRunner (View source)

Wrapper to PHP-CS-Fixer.

Properties

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

Methods

__construct(PhpFixerRuleResolver $ruleResolver, EventDispatcherInterface $eventDispatcher)

No description

EventDispatcherInterface
getEventDispatcher()

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, EventDispatcherInterface $eventDispatcher)

No description

Parameters

PhpFixerRuleResolver $ruleResolver
EventDispatcherInterface $eventDispatcher

EventDispatcherInterface getEventDispatcher()

No description

Return Value

EventDispatcherInterface

$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