CombineConsecutiveIssetsFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- clearTokens() : mixed
- getIssetInfo() : array<string|int, int>
- getTokenClones() : array<string|int, Token>
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before MultilineWhitespaceBeforeSemicolonsFixer, NoSinglelineWhitespaceBeforeSemicolonsFixer, NoSpacesInsideParenthesisFixer, NoTrailingWhitespaceFixer, NoWhitespaceInBlankLineFixer.
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 —clearTokens()
private
clearTokens(Tokens $tokens, array<string|int, int> $indexes) : mixed
Parameters
- $tokens : Tokens
- $indexes : array<string|int, int>
Return values
mixed —getIssetInfo()
private
getIssetInfo(Tokens $tokens, int $index) : array<string|int, int>
Parameters
- $tokens : Tokens
- $index : int
-
of T_ISSET
Return values
array<string|int, int> —indexes of meaningful tokens belonging to the isset statement
getTokenClones()
private
getTokenClones(Tokens $tokens, array<string|int, int> $indexes) : array<string|int, Token>
Parameters
- $tokens : Tokens
- $indexes : array<string|int, int>