Documentation

ConstantCaseFixer extends AbstractFixer
in package
implements ConfigurationDefinitionFixerInterface

Fixer for constants case.

Tags
author

Pol Dellaiera pol.dellaiera@protonmail.com

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

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

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
Return values
bool

Search results