OrderedTraitsFixer
extends AbstractFixer
in package
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- findUseStatementsGroups() : iteratable<string|int, array<int, Tokens>>
- sort() : mixed
- sortMultipleTraitsInStatement() : mixed
- sortUseStatements() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
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()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —findUseStatementsGroups()
private
findUseStatementsGroups(Tokens $tokens) : iteratable<string|int, array<int, Tokens>>
Parameters
- $tokens : Tokens
Return values
iteratable<string|int, array<int, Tokens>> —sort()
private
sort(Tokens $tokens, array<int, Tokens> $elements) : mixed
Parameters
Return values
mixed —sortMultipleTraitsInStatement()
private
sortMultipleTraitsInStatement(Tokens $use) : mixed
Parameters
- $use : Tokens
Return values
mixed —sortUseStatements()
private
sortUseStatements(Tokens $tokens, array<int, Tokens> $uses) : mixed