PHP Class PhpCsFixer\Fixer\FunctionNotation\NoUnreachableDefaultArgumentValueFixer

Author: Mark Scherer
Author: Lucas Manzke ([email protected])
Author: Gregor Harlan ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer
Datei anzeigen Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
clearWhitespacesBeforeIndex ( Tokens $tokens, integer $index )
fixFunctionDefinition ( Tokens $tokens, integer $startIndex, integer $endIndex )
getLastNonDefaultArgumentIndex ( Tokens $tokens, integer $startIndex, integer $endIndex ) : integer | null
isEllipsis ( Tokens $tokens, integer $variableIndex ) : boolean
isTypehintedNullableVariable ( Tokens $tokens, integer $index ) : boolean
removeDefaultArgument ( Tokens $tokens, integer $startIndex, integer $endIndex )

Method Details

fix() public method

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

getDescription() protected method

protected getDescription ( )

isCandidate() public method

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