TrimArraySpacesFixer
extends AbstractFixer
in package
FinalYes
Tags
Table of Contents
Methods
- getDefinition() : FixerDefinitionInterface
- isCandidate() : bool
- applyFix() : void
- fixArray() : void
- Method to trim leading/trailing whitespace within single line arrays.
Methods
getDefinition()
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfaceisCandidate()
public
isCandidate(Tokens $tokens) : bool
Parameters
- $tokens : Tokens
Return values
boolapplyFix()
protected
applyFix(SplFileInfo $file, Tokens $tokens) : void
Parameters
- $file : SplFileInfo
- $tokens : Tokens
fixArray()
Method to trim leading/trailing whitespace within single line arrays.
private
static fixArray(Tokens $tokens, int $index) : void
Parameters
- $tokens : Tokens
- $index : int