ArrayIndentationFixer
extends AbstractFixer
in package
implements
WhitespacesAwareFixerInterface
Interfaces, Classes and Traits
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- computeNewLineContent() : mixed
- extractIndent() : mixed
- findExpressionEndIndex() : mixed
- getLineIndentation() : mixed
- getPreviousNewlineTokenIndex() : mixed
- isNewLineToken() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before AlignMultilineCommentFixer, BinaryOperatorSpacesFixer. Must run after BracesFixer, MethodArgumentSpaceFixer, MethodChainingIndentationFixer.
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —computeNewLineContent()
private
computeNewLineContent(Tokens $tokens, mixed $index) : mixed
Parameters
- $tokens : Tokens
- $index : mixed
Return values
mixed —extractIndent()
private
extractIndent(mixed $content) : mixed
Parameters
- $content : mixed
Return values
mixed —findExpressionEndIndex()
private
findExpressionEndIndex(Tokens $tokens, mixed $index, mixed $parentScopeEndIndex) : mixed
Parameters
- $tokens : Tokens
- $index : mixed
- $parentScopeEndIndex : mixed
Return values
mixed —getLineIndentation()
private
getLineIndentation(Tokens $tokens, mixed $index) : mixed
Parameters
- $tokens : Tokens
- $index : mixed
Return values
mixed —getPreviousNewlineTokenIndex()
private
getPreviousNewlineTokenIndex(Tokens $tokens, mixed $index) : mixed
Parameters
- $tokens : Tokens
- $index : mixed
Return values
mixed —isNewLineToken()
private
isNewLineToken(Tokens $tokens, mixed $index) : mixed
Parameters
- $tokens : Tokens
- $index : mixed