NoSpacesAfterFunctionNameFixer
extends AbstractFixer
in package
Fixer for rules defined in PSR2 ¶4.6.
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixFunctionCall() : mixed
- Fixes whitespaces around braces of a function(y) call.
- getBraceAfterVariableKinds() : array<string|int, array|string>
- getFunctionyTokenKinds() : array<string|int, int>
- Gets the token kinds which can work as function calls.
- getLanguageConstructionTokenKinds() : array<string|int, int>
- Gets the token kinds of actually language construction.
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before FunctionToConstantFixer. Must run after PowToExponentiationFixer.
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —fixFunctionCall()
Fixes whitespaces around braces of a function(y) call.
private
fixFunctionCall(Tokens $tokens, int $index) : mixed
Parameters
- $tokens : Tokens
-
tokens to handle
- $index : int
-
index of token
Return values
mixed —getBraceAfterVariableKinds()
private
getBraceAfterVariableKinds() : array<string|int, array|string>
Return values
array<string|int, array|string> —getFunctionyTokenKinds()
Gets the token kinds which can work as function calls.
private
getFunctionyTokenKinds() : array<string|int, int>
Return values
array<string|int, int> —Token names
getLanguageConstructionTokenKinds()
Gets the token kinds of actually language construction.
private
getLanguageConstructionTokenKinds() : array<string|int, int>