ArrayPushFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- getFirstArgumentEnd() : int
- getSecondArgumentEnd() : null|int
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —isRisky()
{@inheritdoc}
public
isRisky() : mixed
Return values
mixed —applyFix()
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —getFirstArgumentEnd()
private
getFirstArgumentEnd(Tokens $tokens, int $index) : int
Parameters
- $tokens : Tokens
- $index : int
Return values
int —getSecondArgumentEnd()
private
getSecondArgumentEnd(Tokens $tokens, int $index, int $endIndex) : null|int
Parameters
- $tokens : Tokens
- $index : int
- $endIndex : int
-
boundary, i.e. tokens index of
)