PHP Class PhpCsFixer\Fixer\Whitespace\NoSpacesAroundOffsetFixer

Author: Javier Spagnoletti ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface
Show file Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
configure ( array $configuration = null )
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
removeWhitespaceToken ( PhpCsFixer\Tokenizer\Token $token ) Removes the token if it is single line whitespace.

Method Details

configure() public method

public configure ( array $configuration = null )
$configuration array

fix() public method

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

getDescription() protected method

protected getDescription ( )

isCandidate() public method

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