Documentation

DoctrineAnnotationSpacesFixer extends AbstractDoctrineAnnotationFixer
in package
implements ConfigurableFixerInterface uses ConfigurableFixerTrait

FinalYes

Fixes spaces around commas and assignment operators in Doctrine annotations.

Tags
implements

ConfigurableFixerInterface<_AutogeneratedInputConfiguration, _AutogeneratedComputedConfiguration>

phpstan-type

_AutogeneratedInputConfiguration array{ after_argument_assignments?: bool|null, after_array_assignments_colon?: bool|null, after_array_assignments_equals?: bool|null, around_commas?: bool, around_parentheses?: bool, before_argument_assignments?: bool|null, before_array_assignments_colon?: bool|null, before_array_assignments_equals?: bool|null, ignored_tags?: list }

phpstan-type

_AutogeneratedComputedConfiguration array{ after_argument_assignments: bool|null, after_array_assignments_colon: bool|null, after_array_assignments_equals: bool|null, around_commas: bool, around_parentheses: bool, before_argument_assignments: bool|null, before_array_assignments_colon: bool|null, before_array_assignments_equals: bool|null, ignored_tags: list }

Table of Contents

Interfaces

ConfigurableFixerInterface

Methods

getDefinition()  : FixerDefinitionInterface
Returns the definition of the fixer.
getPriority()  : int
Returns the priority of the fixer.
createConfigurationDefinition()  : FixerConfigurationResolverInterface
fixAnnotations()  : void
fixAroundAssignments()  : void
fixSpacesAroundCommas()  : void
fixSpacesAroundParentheses()  : void
updateSpacesAfter()  : void
updateSpacesAt()  : void
updateSpacesBefore()  : void

Methods

getPriority()

Returns the priority of the fixer.

public getPriority() : int

Must run after DoctrineAnnotationArrayAssignmentFixer.

Return values
int

fixAnnotations()

protected fixAnnotations(Tokens $doctrineAnnotationTokens) : void
Parameters
$doctrineAnnotationTokens : Tokens

updateSpacesAfter()

private updateSpacesAfter(Tokens $tokens, int $index, bool|null $insert) : void
Parameters
$tokens : Tokens
$index : int
$insert : bool|null

updateSpacesAt()

private updateSpacesAt(Tokens $tokens, int $index, int $insertIndex, bool|null $insert) : void
Parameters
$tokens : Tokens
$index : int
$insertIndex : int
$insert : bool|null

updateSpacesBefore()

private updateSpacesBefore(Tokens $tokens, int $index, bool|null $insert) : void
Parameters
$tokens : Tokens
$index : int
$insert : bool|null

        
On this page

Search results