PHP Class PhpCsFixer\Fixer\ReturnNotation\SimplifiedNullReturnFixer

Author: Graham Campbell ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer
Afficher le fichier Open project: friendsofphp/php-cs-fixer

Méthodes publiques

Méthode Description
fix ( SplFileInfo $file, Tokens $tokens )
getDefinition ( )
getPriority ( )
isCandidate ( Tokens $tokens )
isRisky ( )

Private Methods

Méthode Description
clear ( Tokens $tokens, integer $index ) Clear the return statement located at a given index.
needFixing ( Tokens $tokens, integer $index ) : boolean Does the return statement located at a given index need fixing?
shouldClearToken ( Tokens $tokens, integer $index ) : boolean Should we clear the specific token?

Method Details

fix() public méthode

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

getDefinition() public méthode

public getDefinition ( )

getPriority() public méthode

public getPriority ( )

isCandidate() public méthode

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

isRisky() public méthode

public isRisky ( )