===================== Rule ``phpdoc_align`` ===================== All items of the given phpdoc tags must be either left-aligned or (by default) aligned vertically. Configuration ------------- ``tags`` ~~~~~~~~ The tags that should be aligned. Allowed values are tags with name (``'param', 'property', 'property-read', 'property-write', 'phpstan-param', 'phpstan-property', 'phpstan-property-read', 'phpstan-property-write', 'phpstan-assert', 'phpstan-assert-if-true', 'phpstan-assert-if-false', 'psalm-param', 'psalm-param-out', 'psalm-property', 'psalm-property-read', 'psalm-property-write', 'psalm-assert', 'psalm-assert-if-true', 'psalm-assert-if-false'``), tags with method signature (``'method', 'phpstan-method', 'psalm-method'``) and any custom tag with description (e.g. ``@tag ``). Allowed types: ``array`` Default value: ``['method', 'param', 'property', 'return', 'throws', 'type', 'var']`` ``align`` ~~~~~~~~~ How comments should be aligned. Allowed values: ``'left'`` and ``'vertical'`` Default value: ``'vertical'`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New 'vertical']``. .. code-block:: diff --- Original +++ New 'left']``. .. code-block:: diff --- Original +++ New `_ - `@Symfony <./../../ruleSets/Symfony.rst>`_