PHP Class Symfony\Upgrade\Fixer

Show file Open project: umpirsky/symfony-upgrade-fixer Class Usage Examples

Public Methods

Method Description
__construct ( Traversable $finder, Symfony\CS\ErrorsManager $errorsManager = null, Symfony\Component\Stopwatch\Stopwatch $stopwatch = null )
addFixer ( Symfony\CS\FixerInterface $fixer )
fix ( $dryRun = false )
getFixers ( )
registerBuiltInFixers ( )

Private Methods

Method Description
fixFile ( SplFileInfo $file, $dryRun )
getFileRelativePathname ( SplFileInfo $file )

Method Details

__construct() public method

public __construct ( Traversable $finder, Symfony\CS\ErrorsManager $errorsManager = null, Symfony\Component\Stopwatch\Stopwatch $stopwatch = null )
$finder Traversable
$errorsManager Symfony\CS\ErrorsManager
$stopwatch Symfony\Component\Stopwatch\Stopwatch

addFixer() public method

public addFixer ( Symfony\CS\FixerInterface $fixer )
$fixer Symfony\CS\FixerInterface

fix() public method

public fix ( $dryRun = false )

getFixers() public method

public getFixers ( )

registerBuiltInFixers() public method