PHP Class PhpCsFixer\Fixer\ClassNotation\NoPhp4ConstructorFixer

Author: Matteo Beccati ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer
Mostra file Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
fix ( SplFileInfo $file, Tokens $tokens )
getName ( )
getPriority ( )
isCandidate ( Tokens $tokens )
isRisky ( )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
findFunction ( Tokens $tokens, string $name, integer $startIndex, integer $endIndex ) : array | null Find a function or method matching a given name within certain bounds.
fixConstructor ( Tokens $tokens, string $className, integer $classStart, integer $classEnd ) Fix constructor within a class, if possible.
fixInfiniteRecursion ( Tokens $tokens, integer $start, integer $end ) Fix a particular infinite recursion issue happening when the parent class has __construct and the child has only a PHP4 constructor that calls the parent constructor as $this->__construct().
fixParent ( Tokens $tokens, integer $classStart, integer $classEnd ) Fix calls to the parent constructor within a class.
getWrapperMethodSequence ( Tokens $tokens, string $method, integer $startIndex, integer $bodyIndex ) : array Generate the sequence of tokens necessary for the body of a wrapper method that simply calls $this->{$method}( [args.

Method Details

fix() public method

public fix ( SplFileInfo $file, Tokens $tokens )
$file SplFileInfo
$tokens PhpCsFixer\Tokenizer\Tokens

getDescription() protected method

protected getDescription ( )

getName() public method

public getName ( )

getPriority() public method

public getPriority ( )

isCandidate() public method

public isCandidate ( Tokens $tokens )
$tokens PhpCsFixer\Tokenizer\Tokens

isRisky() public method

public isRisky ( )