NoWhitespaceBeforeCommaInArrayFixer
extends AbstractFixer
in package
implements
ConfigurationDefinitionFixerInterface
Tags
Interfaces, Classes and Traits
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- fixSpacing() : mixed
- Method to fix spacing in array declaration.
- skipNonArrayElements() : int
- Method to move index over the non-array elements like function calls or function declarations.
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 —createConfigurationDefinition()
{@inheritdoc}
protected
createConfigurationDefinition() : mixed
Return values
mixed —fixSpacing()
Method to fix spacing in array declaration.
private
fixSpacing(int $index, Tokens $tokens) : mixed
Parameters
- $index : int
- $tokens : Tokens
Return values
mixed —skipNonArrayElements()
Method to move index over the non-array elements like function calls or function declarations.
private
skipNonArrayElements(int $index, Tokens $tokens) : int
Parameters
- $index : int
- $tokens : Tokens
Return values
int —New index