Documentation

MethodChainingIndentationFixer extends AbstractFixer
in package
implements WhitespacesAwareFixerInterface

Tags
author

Vladimir Boliev voff.web@gmail.com

Interfaces, Classes and Traits

WhitespacesAwareFixerInterface

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
canBeMovedToNextLine()  : bool
currentLineRequiresExtraIndentLevel()  : bool
getExpectedIndentAt()  : string
getIndentAt()  : null|string
getIndentContentAt()  : mixed

Methods

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before ArrayIndentationFixer, MethodArgumentSpaceFixer. Must run after BracesFixer.

Return values
mixed

canBeMovedToNextLine()

private canBeMovedToNextLine(int $index, Tokens $tokens) : bool
Parameters
$index : int

position of the object operator token ("->" or "?->")

$tokens : Tokens
Return values
bool

currentLineRequiresExtraIndentLevel()

private currentLineRequiresExtraIndentLevel(Tokens $tokens, int $start, int $end) : bool
Parameters
$tokens : Tokens
$start : int

index of first meaningful token on previous line

$end : int

index of last token on previous line

Return values
bool

getExpectedIndentAt()

private getExpectedIndentAt(Tokens $tokens, int $index) : string
Parameters
$tokens : Tokens
$index : int

index of the first token on the line to indent

Return values
string

Search results