PHP Class PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer

Author: Dariusz Rumiński ([email protected])
Author: SpacePossum
Inheritance: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface
Mostrar archivo Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
configure ( array $configuration = null ) Key any of; 'align_equals', 'align_double_arrow'.
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
fixWhiteSpaceAroundOperator ( Tokens $tokens, integer $index )
isDeclareStatement ( Tokens $tokens, integer $index ) : false | integer
runHelperFixers ( SplFileInfo $file, Tokens $tokens )

Method Details

configure() public method

Value 'bool': 'false' do unalign, 'true' do align, or 'null': do not modify.
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