phpdoc_summary.rst 683 B

1234567891011121314151617181920212223242526272829303132333435
  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. @@ -1,5 +1,5 @@
  14. <?php
  15. /**
  16. - * Foo function is great
  17. + * Foo function is great.
  18. */
  19. function foo () {}
  20. Rule sets
  21. ---------
  22. The rule is part of the following rule sets:
  23. @PhpCsFixer
  24. Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``phpdoc_summary`` rule.
  25. @Symfony
  26. Using the `@Symfony <./../../ruleSets/Symfony.rst>`_ rule set will enable the ``phpdoc_summary`` rule.