PHP Class PhpCsFixer\Fixer\LanguageConstruct\ClassKeywordRemoveFixer

Author: Sullivan Senechal ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer
Afficher le fichier Open project: friendsofphp/php-cs-fixer

Méthodes publiques

Méthode Description
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

Méthodes protégées

Méthode Description
getDescription ( )

Private Methods

Méthode Description
makeClassFQN ( string | false $classImport, string $classString ) : string
replaceClassKeyword ( Tokens $tokens, integer $classIndex )
replaceClassKeywords ( Tokens $tokens, integer $namespaceNumber ) Replaces ::class keyword, namespace by namespace.
replaceClassKeywordsSection ( Tokens $tokens, integer $startIndex, integer $endIndex )
storeImports ( Tokens $tokens, integer $startIndex, integer $endIndex )

Method Details

fix() public méthode

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

getDescription() protected méthode

protected getDescription ( )

isCandidate() public méthode

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