SingleClassElementPerStatementFixer
extends AbstractFixer
in package
implements
ConfigurationDefinitionFixerInterface, WhitespacesAwareFixerInterface
Fixer for rules defined in PSR2 ¶4.2.
Tags
Interfaces, Classes and Traits
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- expandElement() : mixed
- fixElement() : mixed
- getModifiersSequences() : array<string|int, Token>
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before ClassAttributesSeparationFixer.
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 —expandElement()
private
expandElement(Tokens $tokens, string $type, int $startIndex, int $endIndex) : mixed
Parameters
- $tokens : Tokens
- $type : string
- $startIndex : int
- $endIndex : int
Return values
mixed —fixElement()
private
fixElement(Tokens $tokens, string $type, int $index) : mixed
Parameters
- $tokens : Tokens
- $type : string
- $index : int
Return values
mixed —getModifiersSequences()
private
getModifiersSequences(Tokens $tokens, string $type, int $startIndex, int $endIndex) : array<string|int, Token>
Parameters
- $tokens : Tokens
- $type : string
- $startIndex : int
- $endIndex : int