PHP Class PhpCsFixer\Fixer\Import\SingleImportPerStatementFixer

Author: Dariusz Rumiński ([email protected])
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
detectIndent ( Tokens $tokens, integer $index ) : string
fixGroupUse ( Tokens $tokens, $index, $endIndex )
fixMultipleUse ( Tokens $tokens, $index, $endIndex )
getGroupDeclaration ( Tokens $tokens, integer $index ) : array
getGroupStatements ( Tokens $tokens, string $groupPrefix, integer $groupOpenIndex, integer $groupCloseIndex, string $comment ) : string[]

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