BlankLineAfterNamespaceFixer
extends AbstractFixer
in package
implements
WhitespacesAwareFixerInterface
Fixer for rules defined in PSR2 ¶3.
Tags
Interfaces, Classes and Traits
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- getIndexToEnsureBlankLineAfter() : int
- getTokenToInsert() : Token
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run after NoUnusedImportsFixer.
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 —getIndexToEnsureBlankLineAfter()
private
getIndexToEnsureBlankLineAfter(Tokens $tokens, int $index) : int
Parameters
- $tokens : Tokens
- $index : int
Return values
int —getTokenToInsert()
private
getTokenToInsert(string $currentContent, bool $isLastIndex) : Token
Parameters
- $currentContent : string
- $isLastIndex : bool