DoctrineAnnotationIndentationFixer
extends AbstractDoctrineAnnotationFixer
in package
implements
ConfigurableFixerInterface
uses
ConfigurableFixerTrait
FinalYes
Tags
Table of Contents
Interfaces
Methods
- getDefinition() : FixerDefinitionInterface
- Returns the definition of the fixer.
- createConfigurationDefinition() : FixerConfigurationResolverInterface
- fixAnnotations() : void
- getLineBracesCount() : array{: int, : int}
- indentationCanBeFixed() : bool
- isClosingLineWithMeaningfulContent() : bool
Methods
getDefinition()
Returns the definition of the fixer.
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfacecreateConfigurationDefinition()
protected
createConfigurationDefinition() : FixerConfigurationResolverInterface
Return values
FixerConfigurationResolverInterfacefixAnnotations()
protected
fixAnnotations(Tokens $doctrineAnnotationTokens) : void
Parameters
- $doctrineAnnotationTokens : Tokens
getLineBracesCount()
private
getLineBracesCount(Tokens $tokens, int $index) : array{: int, : int}
Parameters
- $tokens : Tokens
- $index : int
Return values
array{: int, : int}indentationCanBeFixed()
private
indentationCanBeFixed(Tokens $tokens, int $newLineTokenIndex, array<int, array{: int, : int}> $annotationPositions) : bool
Parameters
- $tokens : Tokens
- $newLineTokenIndex : int
- $annotationPositions : array<int, array{: int, : int}>
-
Pairs of begin and end indices of main annotations
Return values
boolisClosingLineWithMeaningfulContent()
private
isClosingLineWithMeaningfulContent(Tokens $tokens, int $index) : bool
Parameters
- $tokens : Tokens
- $index : int