PHP Class PhpCsFixer\Fixer\Import\OrderedImportsFixer

Author: Sebastiaan Stok ([email protected])
Author: Dariusz Rumiński ([email protected])
Author: SpacePossum
Inheritance: extends PhpCsFixer\AbstractFixer
Afficher le fichier Open project: friendsofphp/php-cs-fixer

Méthodes publiques

Méthode Description
fix ( SplFileInfo $file, Tokens $tokens )
getPriority ( )
isCandidate ( Tokens $tokens )
sortingCallBack ( array $first, array $second ) : integer This method is used for sorting the uses in a namespace.

Méthodes protégées

Méthode Description
getDescription ( )

Private Methods

Méthode Description
getNewOrder ( array $uses, Tokens $tokens )

Method Details

fix() public méthode

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

getDescription() protected méthode

protected getDescription ( )

getPriority() public méthode

public getPriority ( )

isCandidate() public méthode

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

sortingCallBack() public static méthode

This method is used for sorting the uses in a namespace.
public static sortingCallBack ( array $first, array $second ) : integer
$first array
$second array
Résultat integer