Documentation

NoUselessReturnFixer extends AbstractFixer
in package

FinalYes

Table of Contents

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
isCandidate()  : bool
applyFix()  : void
fixFunction()  : void

Methods

getPriority()

{@inheritdoc}

public getPriority() : int

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

Return values
int

fixFunction()

private fixFunction(Tokens $tokens, int $start, int $end) : void
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


        
On this page

Search results