PHP Class PhpCsFixer\Fixer\ClassNotation\ClassDefinitionFixer

Author: SpacePossum
Inheritance: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface, implements PhpCsFixer\Fixer\WhitespacesAwareFixerInterface
Exibir arquivo 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
fixClassyDefinition ( Tokens $tokens, integer $classyIndex )
fixClassyDefinitionExtends ( Tokens $tokens, $classOpenIndex, $classExtendsInfo )
fixClassyDefinitionImplements ( Tokens $tokens, integer $classOpenIndex, array $classImplementsInfo )
fixClassyDefinitionOpenSpacing ( Tokens $tokens, integer $openIndex ) : integer
getClassyDefinitionInfo ( Tokens $tokens, integer $classyIndex ) : array
getClassyInheritanceInfo ( Tokens $tokens, integer $implementsIndex, integer $openIndex, string $label ) : array
makeClassyDefinitionSingleLine ( Tokens $tokens, integer $startIndex, integer $endIndex )
makeClassyInheritancePartMultiLine ( Tokens $tokens, integer $startIndex, integer $endIndex )

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