SwitchCaseSemicolonToColonFixer
extends AbstractFixer
in package
Fixer for rules defined in PSR2 ΒΆ5.2.
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixSwitchCase() : mixed
- fixSwitchDefault() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run after NoEmptyStatementFixer.
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —fixSwitchCase()
protected
fixSwitchCase(Tokens $tokens, int $index) : mixed
Parameters
- $tokens : Tokens
- $index : int
Return values
mixed —fixSwitchDefault()
protected
fixSwitchDefault(Tokens $tokens, int $index) : mixed
Parameters
- $tokens : Tokens
- $index : int