Documentation

NoUselessReturnFixer extends AbstractFixer
in package

Tags
author

SpacePossum

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
fixFunction()  : mixed

Methods

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before BlankLineBeforeReturnFixer, BlankLineBeforeStatementFixer, NoExtraBlankLinesFixer, NoWhitespaceInBlankLineFixer, SingleLineCommentStyleFixer. Must run after NoEmptyStatementFixer, NoUnneededCurlyBracesFixer, NoUselessElseFixer, SimplifiedNullReturnFixer.

Return values
mixed

applyFix()

{@inheritdoc}

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

fixFunction()

private fixFunction(Tokens $tokens, int $start, int $end) : mixed
Parameters
$tokens : Tokens
$start : int

Token index of the opening brace token of the function

$end : int

Token index of the closing brace token of the function

Return values
mixed

Search results