phpdoc_summary.rst 664 B

12345678910111213141516171819202122232425262728293031323334
  1. =======================
  2. Rule ``phpdoc_summary``
  3. =======================
  4. PHPDoc summary should end in either a full stop, exclamation mark, or question
  5. mark.
  6. Examples
  7. --------
  8. Example #1
  9. ~~~~~~~~~~
  10. .. code-block:: diff
  11. --- Original
  12. +++ New
  13. <?php
  14. /**
  15. - * Foo function is great
  16. + * Foo function is great.
  17. */
  18. function foo () {}
  19. Rule sets
  20. ---------
  21. The rule is part of the following rule sets:
  22. @PhpCsFixer
  23. Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``phpdoc_summary`` rule.
  24. @Symfony
  25. Using the `@Symfony <./../../ruleSets/Symfony.rst>`_ rule set will enable the ``phpdoc_summary`` rule.