PHP Class PhpCsFixer\Fixer\ArrayNotation\WhitespaceAfterCommaInArrayFixer

Author: Adam Marczuk ([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
fixSpacing ( integer $index, Tokens $tokens ) Method to fix spacing in array declaration.
skipNonArrayElements ( integer $index, Tokens $tokens ) : integer Method to move index over the non-array elements like function calls or function declarations.

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