PHP Class PhpCsFixer\Fixer\LanguageConstruct\CombineConsecutiveUnsetsFixer

Author: SpacePossum
Inheritance: extends PhpCsFixer\AbstractFixer
Exibir arquivo Open project: friendsofphp/php-cs-fixer

Public Methods

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

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
clearOffsetTokens ( Tokens $tokens, integer $offset, array $indices )
getPreviousUnsetCall ( Tokens $tokens, integer $index ) : int[] | integer Find a previous call to unset directly before the index.
moveTokens ( Tokens $tokens, integer $start, integer $end, integer $to ) : integer

Method Details

fix() public method

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

getDescription() protected method

protected getDescription ( )

getPriority() public method

public getPriority ( )

isCandidate() public method

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