Documentation

ElseifFixer extends AbstractFixer
in package

Fixer for rules defined in PSR2 ¶5.1.

Tags
author

Dariusz Rumiński dariusz.ruminski@gmail.com

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
Replace all `else if` (T_ELSE T_IF) with `elseif` (T_ELSEIF).

Methods

getDefinition()

{@inheritdoc}

public getDefinition() : mixed
Return values
mixed

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before BracesFixer. Must run after NoAlternativeSyntaxFixer.

Return values
mixed

isCandidate()

{@inheritdoc}

public isCandidate(Tokens $tokens) : mixed
Parameters
$tokens : Tokens
Return values
mixed

applyFix()

Replace all `else if` (T_ELSE T_IF) with `elseif` (T_ELSEIF).

protected applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
$file : SplFileInfo
$tokens : Tokens
Return values
mixed

Search results