Documentation

NoShortBoolCastFixer extends AbstractFixer
in package

Tags
author

SpacePossum

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
fixShortCast()  : int
fixShortCastToBoolCast()  : mixed

Methods

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before CastSpacesFixer.

Return values
mixed

applyFix()

{@inheritdoc}

protected applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
$file : SplFileInfo
$tokens : Tokens
Return values
mixed

fixShortCastToBoolCast()

private fixShortCastToBoolCast(Tokens $tokens, int $start, int $end) : mixed
Parameters
$tokens : Tokens
$start : int
$end : int
Return values
mixed

Search results