PHP Class PhpCsFixer\Fixer\FunctionNotation\MethodArgumentSpaceFixer

Author: Kuanhung Chen ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer
Datei anzeigen Open project: friendsofphp/php-cs-fixer

Public Methods

Method 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 )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method 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 method

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

fixSpace() public method

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 method

protected getDescription ( )

isCandidate() public method

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