Documentation

NoSpacesAfterFunctionNameFixer extends AbstractFixer
in package

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

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

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before FunctionToConstantFixer. Must run after PowToExponentiationFixer.

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

Search results