Documentation

SingleImportPerStatementFixer extends AbstractFixer
in package
implements WhitespacesAwareFixerInterface

Fixer for rules defined in PSR2 ¶3.

Tags
author

Dariusz Rumiński dariusz.ruminski@gmail.com

author

SpacePossum

Interfaces, Classes and Traits

WhitespacesAwareFixerInterface

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
fixGroupUse()  : mixed
fixMultipleUse()  : mixed
getGroupDeclaration()  : array<string|int, mixed>
getGroupStatements()  : array<string|int, string>

Methods

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before MultilineWhitespaceBeforeSemicolonsFixer, NoLeadingImportSlashFixer, NoSinglelineWhitespaceBeforeSemicolonsFixer, NoUnusedImportsFixer, SpaceAfterSemicolonFixer.

Return values
mixed

getGroupDeclaration()

private getGroupDeclaration(Tokens $tokens, int $index) : array<string|int, mixed>
Parameters
$tokens : Tokens
$index : int
Return values
array<string|int, mixed>

getGroupStatements()

private getGroupStatements(Tokens $tokens, string $groupPrefix, int $groupOpenIndex, int $groupCloseIndex, string $comment) : array<string|int, string>
Parameters
$tokens : Tokens
$groupPrefix : string
$groupOpenIndex : int
$groupCloseIndex : int
$comment : string
Return values
array<string|int, string>

Search results