PHP Class PhpCsFixer\Fixer\FunctionNotation\MethodArgumentSpaceFixer

Author: Kuanhung Chen ([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 )
fixSpace ( Tokens $tokens, integer $index ) Method to insert space after comma and remove space before comma.
isCandidate ( Tokens $tokens )

Méthodes protégées

Méthode Description
getDescription ( )

Private Methods

Méthode Description
fixFunction ( Tokens $tokens, integer $startFunctionIndex ) Fix arguments spacing for given function.
isCommentLastLineToken ( Tokens $tokens, integer $index ) : boolean Check if last item of current line is a comment.

Method Details

fix() public méthode

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

fixSpace() public méthode

Method to insert space after comma and remove space before comma.
public fixSpace ( Tokens $tokens, integer $index )
$tokens PhpCsFixer\Tokenizer\Tokens
$index integer

getDescription() protected méthode

protected getDescription ( )

isCandidate() public méthode

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