IndentationTypeFixer
extends AbstractFixer
in package
implements
WhitespacesAwareFixerInterface
Fixer for rules defined in PSR2 ¶2.4.
Tags
Interfaces, Classes and Traits
Table of Contents
- $indent : string
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixIndentInComment() : Token
- fixIndentToken() : Token
- getExpectedIndent() : string
Properties
$indent
private
string
$indent
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before PhpdocIndentFixer. Must run after ClassAttributesSeparationFixer, MethodSeparationFixer.
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 —fixIndentInComment()
private
fixIndentInComment(Tokens $tokens, int $index) : Token
Parameters
- $tokens : Tokens
- $index : int
Return values
Token —fixIndentToken()
private
fixIndentToken(Tokens $tokens, int $index) : Token
Parameters
- $tokens : Tokens
- $index : int
Return values
Token —getExpectedIndent()
private
getExpectedIndent(string $content, string $indent) : string
Parameters
- $content : string
- $indent : string
Return values
string —mixed