ConstantCaseFixer
extends AbstractFixer
in package
implements
ConfigurationDefinitionFixerInterface
Fixer for constants case.
Tags
Interfaces, Classes and Traits
Table of Contents
- $fixFunction : callable
- Hold the function that will be used to convert the constants.
- configure() : mixed
- {@inheritdoc}
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- isNeighbourAccepted() : bool
Properties
$fixFunction
Hold the function that will be used to convert the constants.
private
callable
$fixFunction
Methods
configure()
{@inheritdoc}
public
configure([array<string|int, mixed> $configuration = null ]) : mixed
Parameters
- $configuration : array<string|int, mixed> = null
Return values
mixed —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 —isNeighbourAccepted()
private
isNeighbourAccepted(Tokens $tokens, int $index) : bool
Parameters
- $tokens : Tokens
- $index : int