Documentation

VisibilityRequiredFixer extends AbstractFixer
in package
implements ConfigurationDefinitionFixerInterface

Fixer for rules defined in PSR2 ¶4.3, ¶4.5.

Tags
author

Dariusz Rumiński dariusz.ruminski@gmail.com

author

SpacePossum

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
createConfigurationDefinition()  : mixed
{@inheritdoc}
isKeywordPlacedProperly()  : bool
moveTokenAndEnsureSingleSpaceFollows()  : mixed

Methods

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

isKeywordPlacedProperly()

private isKeywordPlacedProperly(Tokens $tokens, int $keywordIndex, int $comparedIndex) : bool
Parameters
$tokens : Tokens
$keywordIndex : int
$comparedIndex : int
Return values
bool

moveTokenAndEnsureSingleSpaceFollows()

private moveTokenAndEnsureSingleSpaceFollows(Tokens $tokens, int $fromIndex, int $toIndex) : mixed
Parameters
$tokens : Tokens
$fromIndex : int
$toIndex : int
Return values
mixed

Search results