NoShortBoolCastFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixShortCast() : int
- fixShortCastToBoolCast() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before CastSpacesFixer.
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 —fixShortCast()
private
fixShortCast(Tokens $tokens, int $index) : int
Parameters
- $tokens : Tokens
- $index : int
Return values
int —fixShortCastToBoolCast()
private
fixShortCastToBoolCast(Tokens $tokens, int $start, int $end) : mixed
Parameters
- $tokens : Tokens
- $start : int
- $end : int