Runner
in package
Tags
Table of Contents
- $cacheManager : CacheManagerInterface
- $differ : DifferInterface
- $directory : DirectoryInterface
- $errorsManager : ErrorsManager
- $eventDispatcher : null|EventDispatcherInterface
- $finder : Traversable
- $fixers : array<string|int, FixerInterface>
- $isDryRun : bool
- $linter : LinterInterface
- $stopOnViolation : bool
- __construct() : mixed
- fix() : array<string|int, mixed>
- dispatchEvent() : mixed
- fixFile() : mixed
- processException() : mixed
- Process an exception that occurred.
Properties
$cacheManager
private
CacheManagerInterface
$cacheManager
$differ
private
DifferInterface
$differ
$directory
private
DirectoryInterface
$directory
$errorsManager
private
ErrorsManager
$errorsManager
$eventDispatcher
private
null|EventDispatcherInterface
$eventDispatcher
$finder
private
Traversable
$finder
$fixers
private
array<string|int, FixerInterface>
$fixers
$isDryRun
private
bool
$isDryRun
$linter
private
LinterInterface
$linter
$stopOnViolation
private
bool
$stopOnViolation
Methods
__construct()
public
__construct(mixed $finder, array<string|int, mixed> $fixers, DifferInterface $differ[, EventDispatcherInterface $eventDispatcher = null ], ErrorsManager $errorsManager, LinterInterface $linter, mixed $isDryRun, CacheManagerInterface $cacheManager[, DirectoryInterface $directory = null ][, mixed $stopOnViolation = false ]) : mixed
Parameters
- $finder : mixed
- $fixers : array<string|int, mixed>
- $differ : DifferInterface
- $eventDispatcher : EventDispatcherInterface = null
- $errorsManager : ErrorsManager
- $linter : LinterInterface
- $isDryRun : mixed
- $cacheManager : CacheManagerInterface
- $directory : DirectoryInterface = null
- $stopOnViolation : mixed = false
Return values
mixed —fix()
public
fix() : array<string|int, mixed>
Return values
array<string|int, mixed> —dispatchEvent()
private
dispatchEvent(string $name, Event $event) : mixed
Parameters
- $name : string
- $event : Event
Return values
mixed —fixFile()
private
fixFile(SplFileInfo $file, LintingResultInterface $lintingResult) : mixed
Parameters
- $file : SplFileInfo
- $lintingResult : LintingResultInterface
Return values
mixed —processException()
Process an exception that occurred.
private
processException(string $name, Throwable $e) : mixed
Parameters
- $name : string
- $e : Throwable