RegularCallableCallFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- applyFix() : mixed
- {@inheritdoc}
- getTokensSubcollection() : mixed
- processCall() : mixed
- replaceCallUserFuncWithCallback() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —isRisky()
public
isRisky() : mixed
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —getTokensSubcollection()
private
getTokensSubcollection(Tokens $tokens, mixed $indexStart, mixed $indexEnd) : mixed
Parameters
- $tokens : Tokens
- $indexStart : mixed
- $indexEnd : mixed
Return values
mixed —processCall()
private
processCall(Tokens $tokens, int $index, array<string|int, mixed> $arguments) : mixed
Parameters
- $tokens : Tokens
- $index : int
- $arguments : array<string|int, mixed>
Return values
mixed —replaceCallUserFuncWithCallback()
private
replaceCallUserFuncWithCallback(Tokens $tokens, int $callIndex, Tokens $newCallTokens, int $firstArgStartIndex, int $firstArgEndIndex) : mixed
Parameters
- $tokens : Tokens
- $callIndex : int
- $newCallTokens : Tokens
- $firstArgStartIndex : int
- $firstArgEndIndex : int