MethodChainingIndentationFixer
extends AbstractFixer
in package
implements
WhitespacesAwareFixerInterface
Tags
Interfaces, Classes and Traits
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
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before ArrayIndentationFixer, MethodArgumentSpaceFixer. Must run after BracesFixer.
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
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 —getIndentAt()
private
getIndentAt(Tokens $tokens, int $index) : null|string
Parameters
- $tokens : Tokens
- $index : int
-
index of the indentation token
Return values
null|string —getIndentContentAt()
private
getIndentContentAt(Tokens $tokens, mixed $index) : mixed
Parameters
- $tokens : Tokens
- $index : mixed