StandardizeIncrementFixer
extends AbstractIncrementOperatorFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- findStart() : int
- clearRangeLeaveComments() : mixed
- Clear tokens in the given range unless they are comments.
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before IncrementStyleFixer.
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 —findStart()
protected
final findStart(Tokens $tokens, int $index) : int
Parameters
- $tokens : Tokens
- $index : int
Return values
int —clearRangeLeaveComments()
Clear tokens in the given range unless they are comments.
private
clearRangeLeaveComments(Tokens $tokens, int $indexStart, int $indexEnd) : mixed
Parameters
- $tokens : Tokens
- $indexStart : int
- $indexEnd : int