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