SetTypeToCastFixer
extends AbstractFunctionReferenceFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- findSettypeCalls() : mixed
- findSettypeNullCall() : mixed
- fixSettypeCall() : mixed
- removeSettypeCall() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —findSettypeCalls()
private
findSettypeCalls(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —findSettypeNullCall()
private
findSettypeNullCall(Tokens $tokens, int $functionNameIndex, Token $argumentToken) : mixed
Parameters
Return values
mixed —fixSettypeCall()
private
fixSettypeCall(Tokens $tokens, int $functionNameIndex, Token $argumentToken, Token $castToken) : mixed
Parameters
Return values
mixed —removeSettypeCall()
private
removeSettypeCall(Tokens $tokens, int $functionNameIndex, int $openParenthesisIndex, int $firstArgumentStart, int $commaIndex, int $secondArgumentStart, int $closeParenthesisIndex) : mixed
Parameters
- $tokens : Tokens
- $functionNameIndex : int
- $openParenthesisIndex : int
- $firstArgumentStart : int
- $commaIndex : int
- $secondArgumentStart : int
- $closeParenthesisIndex : int