Documentation

StaticLambdaFixer extends AbstractFixer
in package

Tags
author

SpacePossum

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
isRisky()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
findExpressionEnd()  : int
hasPossibleReferenceToThis()  : bool
Returns 'true' if there is a possible reference to '$this' within the given tokens index range.

Methods

getDefinition()

{@inheritdoc}

public getDefinition() : mixed
Return values
mixed

applyFix()

{@inheritdoc}

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

findExpressionEnd()

private findExpressionEnd(Tokens $tokens, int $index) : int
Parameters
$tokens : Tokens
$index : int
Return values
int

hasPossibleReferenceToThis()

Returns 'true' if there is a possible reference to '$this' within the given tokens index range.

private hasPossibleReferenceToThis(Tokens $tokens, int $startIndex, int $endIndex) : bool
Parameters
$tokens : Tokens
$startIndex : int
$endIndex : int
Return values
bool

Search results