Documentation

NoUnneededCurlyBracesFixer extends AbstractFixer
in package
implements ConfigurationDefinitionFixerInterface

Tags
author

SpacePossum

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
createConfigurationDefinition()  : mixed
{@inheritdoc}
clearIfIsOverCompleteNamespaceBlock()  : mixed
clearOverCompleteBraces()  : mixed
findCurlyBraceOpen()  : mixed
isOverComplete()  : bool

Methods

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before NoUselessElseFixer, NoUselessReturnFixer, ReturnAssignmentFixer, SimplifiedIfReturnFixer.

Return values
mixed

createConfigurationDefinition()

{@inheritdoc}

protected createConfigurationDefinition() : mixed
Return values
mixed

clearOverCompleteBraces()

private clearOverCompleteBraces(Tokens $tokens, int $openIndex, int $closeIndex) : mixed
Parameters
$tokens : Tokens
$openIndex : int

index of { token

$closeIndex : int

index of } token

Return values
mixed

Search results