PHP Class PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer

Author: Gregor Harlan ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface
Mostrar archivo Open project: friendsofphp/php-cs-fixer

Public Methods

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

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
detectElementType ( Tokens $tokens, integer $index ) : string | array
findElementEnd ( Tokens $tokens, integer $index ) : integer
getElements ( Tokens $tokens, integer $startIndex ) : array[]
sortElements ( array $elements ) : array[]
sortTokens ( Tokens $tokens, integer $startIndex, integer $endIndex, array $elements )

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 ( )

getPriority() public method

public getPriority ( )

isCandidate() public method

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