Documentation

DoctrineAnnotationIndentationFixer extends AbstractDoctrineAnnotationFixer
in package
implements ConfigurableFixerInterface uses ConfigurableFixerTrait

FinalYes
Tags
implements

ConfigurableFixerInterface<_AutogeneratedInputConfiguration, _AutogeneratedComputedConfiguration>

phpstan-type

_AutogeneratedInputConfiguration array{ ignored_tags?: list, indent_mixed_lines?: bool }

phpstan-type

_AutogeneratedComputedConfiguration array{ ignored_tags: list, indent_mixed_lines: bool }

Table of Contents

Interfaces

ConfigurableFixerInterface

Methods

getDefinition()  : FixerDefinitionInterface
Returns the definition of the fixer.
createConfigurationDefinition()  : FixerConfigurationResolverInterface
fixAnnotations()  : void
getLineBracesCount()  : array{: int, : int}
indentationCanBeFixed()  : bool
isClosingLineWithMeaningfulContent()  : bool

Methods

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
bool

isClosingLineWithMeaningfulContent()

private isClosingLineWithMeaningfulContent(Tokens $tokens, int $index) : bool
Parameters
$tokens : Tokens
$index : int
Return values
bool

        
On this page

Search results