DoctrineAnnotationSpacesFixer
extends AbstractDoctrineAnnotationFixer
in package
Fixes spaces around commas and assignment operators in Doctrine annotations.
Table of Contents
- configure() : mixed
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- fixAnnotations() : mixed
- {@inheritdoc}
- fixAroundAssignments() : mixed
- fixSpacesAroundCommas() : mixed
- fixSpacesAroundParentheses() : mixed
- updateSpacesAfter() : mixed
- updateSpacesAt() : mixed
- updateSpacesBefore() : mixed
Methods
configure()
public
configure([array<string|int, mixed> $configuration = null ]) : mixed
Parameters
- $configuration : array<string|int, mixed> = null
Return values
mixed —getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run after DoctrineAnnotationArrayAssignmentFixer.
Return values
mixed —createConfigurationDefinition()
{@inheritdoc}
protected
createConfigurationDefinition() : mixed
Return values
mixed —fixAnnotations()
{@inheritdoc}
protected
fixAnnotations(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —fixAroundAssignments()
private
fixAroundAssignments(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —fixSpacesAroundCommas()
private
fixSpacesAroundCommas(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —fixSpacesAroundParentheses()
private
fixSpacesAroundParentheses(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —updateSpacesAfter()
private
updateSpacesAfter(Tokens $tokens, int $index, null|bool $insert) : mixed
Parameters
- $tokens : Tokens
- $index : int
- $insert : null|bool
Return values
mixed —updateSpacesAt()
private
updateSpacesAt(Tokens $tokens, int $index, int $insertIndex, null|bool $insert) : mixed
Parameters
- $tokens : Tokens
- $index : int
- $insertIndex : int
- $insert : null|bool
Return values
mixed —updateSpacesBefore()
private
updateSpacesBefore(Tokens $tokens, int $index, null|bool $insert) : mixed
Parameters
- $tokens : Tokens
- $index : int
- $insert : null|bool