HumHub Documentation (unofficial)

DoctrineAnnotationSpacesFixer extends AbstractDoctrineAnnotationFixer
in package

FinalYes

Fixes spaces around commas and assignment operators in Doctrine annotations.

Table of Contents

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
createConfigurationDefinition()  : FixerConfigurationResolverInterface
fixAnnotations()  : void
fixAroundAssignments()  : void
fixSpacesAroundCommas()  : void
fixSpacesAroundParentheses()  : void
updateSpacesAfter()  : void
updateSpacesAt()  : void
updateSpacesBefore()  : void

Methods

getPriority()

{@inheritdoc}

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