Documentation

ArrayIndentationFixer extends AbstractFixer
in package
implements WhitespacesAwareFixerInterface

Interfaces, Classes and Traits

WhitespacesAwareFixerInterface

Table of Contents

$newlineTokenIndexCache  : int
$newlineTokenPositionCache  : int
getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
computeNewLineContent()  : mixed
extractIndent()  : mixed
findExpressionEndIndex()  : mixed
getLineIndentation()  : mixed
getPreviousNewlineTokenIndex()  : mixed
isNewLineToken()  : mixed
returnWithUpdateCache()  : mixed

Properties

Methods

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before AlignMultilineCommentFixer, BinaryOperatorSpacesFixer. Must run after BracesFixer, MethodArgumentSpaceFixer, MethodChainingIndentationFixer.

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 $startIndex) : mixed
Parameters
$tokens : Tokens
$startIndex : mixed
Return values
mixed

returnWithUpdateCache()

private returnWithUpdateCache(int $index, null|int $position) : mixed
Parameters
$index : int
$position : null|int
Return values
mixed

Search results