Documentation

NoSpacesAfterFunctionNameFixer extends AbstractFixer
in package

FinalYes

Fixer for rules defined in PSR2 ¶4.6.

Tags
author

Varga Bence vbence@czentral.org

author

Dariusz Rumiński dariusz.ruminski@gmail.com

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

getPriority()

{@inheritdoc}

public getPriority() : int

Must run before FunctionToConstantFixer, GetClassToClassKeywordFixer. Must run after PowToExponentiationFixer.

Return values
int

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>
Return values
array<int, int>

        
On this page

Search results