Documentation

ListSyntaxFixer extends AbstractFixer
in package
implements ConfigurationDefinitionFixerInterface

Tags
author

SpacePossum

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

Table of Contents

$candidateTokenKind  : mixed
configure()  : mixed
Use 'syntax' => 'long'|'short'.
getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
createConfigurationDefinition()  : mixed
{@inheritdoc}
fixToLongSyntax()  : mixed
fixToShortSyntax()  : mixed

Properties

Methods

configure()

Use 'syntax' => 'long'|'short'.

public configure([null|array<string, string> $configuration = null ]) : mixed
Parameters
$configuration : null|array<string, string> = null
Tags
throws
InvalidFixerConfigurationException
Return values
mixed

getDefinition()

{@inheritdoc}

public getDefinition() : mixed
Return values
mixed

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before BinaryOperatorSpacesFixer, TernaryOperatorSpacesFixer.

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

fixToLongSyntax()

private fixToLongSyntax(Tokens $tokens, int $index) : mixed
Parameters
$tokens : Tokens
$index : int
Return values
mixed

fixToShortSyntax()

private fixToShortSyntax(Tokens $tokens, int $index) : mixed
Parameters
$tokens : Tokens
$index : int
Return values
mixed

Search results