Documentation

ElseifFixer extends AbstractFixer
in package

FinalYes

Fixer for rules defined in PSR2 ¶5.1.

Tags
author

Dariusz Rumiński dariusz.ruminski@gmail.com

Table of Contents

Methods

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

Methods

getPriority()

{@inheritdoc}

public getPriority() : int

Must run after NoAlternativeSyntaxFixer.

Return values
int

applyFix()

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

protected applyFix(SplFileInfo $file, Tokens $tokens) : void
Parameters
$file : SplFileInfo
$tokens : Tokens

        
On this page

Search results