phpdoc_single_line_var_spacing.rst 695 B

123456789101112131415161718192021222324252627282930
  1. =======================================
  2. Rule ``phpdoc_single_line_var_spacing``
  3. =======================================
  4. Single line ``@var`` PHPDoc should have proper spacing.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. -<?php /**@var MyClass $a */
  13. +<?php /** @var MyClass $a */
  14. $a = test();
  15. Rule sets
  16. ---------
  17. The rule is part of the following rule sets:
  18. @PhpCsFixer
  19. Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``phpdoc_single_line_var_spacing`` rule.
  20. @Symfony
  21. Using the `@Symfony <./../../ruleSets/Symfony.rst>`_ rule set will enable the ``phpdoc_single_line_var_spacing`` rule.