NoUnsetOnPropertyFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- getUnsetsInfo() : array<string|int, array<string, bool|int>>
- isAnyUnsetToTransform() : bool
- isProperty() : bool
- updateTokens() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before CombineConsecutiveUnsetsFixer.
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 —getUnsetsInfo()
private
getUnsetsInfo(Tokens $tokens, int $index) : array<string|int, array<string, bool|int>>
Parameters
- $tokens : Tokens
- $index : int
Return values
array<string|int, array<string, bool|int>> —isAnyUnsetToTransform()
private
isAnyUnsetToTransform(array<string|int, array<string, bool|int>> $unsetsInfo) : bool
Parameters
- $unsetsInfo : array<string|int, array<string, bool|int>>
Return values
bool —isProperty()
private
isProperty(Tokens $tokens, int $index, int $endIndex) : bool
Parameters
- $tokens : Tokens
- $index : int
- $endIndex : int
Return values
bool —updateTokens()
private
updateTokens(Tokens $tokens, array<string, bool|int> $unsetInfo, bool $isLastUnset) : mixed
Parameters
- $tokens : Tokens
- $unsetInfo : array<string, bool|int>
- $isLastUnset : bool