PHP Class PhpCsFixer\Fixer\ReturnNotation\SimplifiedNullReturnFixer

Author: Graham Campbell ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer
显示文件 Open project: friendsofphp/php-cs-fixer

Public Methods

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

Private Methods

Method 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 method

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

getDefinition() public method

public getDefinition ( )

getPriority() public method

public getPriority ( )

isCandidate() public method

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

isRisky() public method

public isRisky ( )