DoctrineAnnotationIndentationFixer
extends AbstractDoctrineAnnotationFixer
in package
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- fixAnnotations() : mixed
- {@inheritdoc}
- getLineBracesCount() : array<string|int, int>
- indentationCanBeFixed() : bool
- isClosingLineWithMeaningfulContent() : bool
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —createConfigurationDefinition()
{@inheritdoc}
protected
createConfigurationDefinition() : mixed
Return values
mixed —fixAnnotations()
{@inheritdoc}
protected
fixAnnotations(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —getLineBracesCount()
private
getLineBracesCount(Tokens $tokens, int $index) : array<string|int, int>
Parameters
- $tokens : Tokens
- $index : int
Return values
array<string|int, int> —indentationCanBeFixed()
private
indentationCanBeFixed(Tokens $tokens, int $newLineTokenIndex, array<string|int, array<string|int, int>> $annotationPositions) : bool
Parameters
- $tokens : Tokens
- $newLineTokenIndex : int
- $annotationPositions : array<string|int, array<string|int, int>>
-
Pairs of begin and end indexes of main annotations
Return values
bool —isClosingLineWithMeaningfulContent()
private
isClosingLineWithMeaningfulContent(Tokens $tokens, int $index) : bool
Parameters
- $tokens : Tokens
- $index : int