SingleLineThrowFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- isNextTokenToClear() : bool
- isPreviousTokenToClear() : bool
- trimNewLines() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before BracesFixer, ConcatSpaceFixer.
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 —isNextTokenToClear()
private
isNextTokenToClear(Token $token) : bool
Parameters
- $token : Token
Return values
bool —isPreviousTokenToClear()
private
isPreviousTokenToClear(Token $token) : bool
Parameters
- $token : Token
Return values
bool —trimNewLines()
private
trimNewLines(Tokens $tokens, int $startIndex, int $endIndex) : mixed
Parameters
- $tokens : Tokens
- $startIndex : int
- $endIndex : int