phpdoc_summary.rst 916 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 <./../../ruleSets/PhpCsFixer.rst>`_
  23. - `@Symfony <./../../ruleSets/Symfony.rst>`_
  24. References
  25. ----------
  26. - Fixer class: `PhpCsFixer\\Fixer\\Phpdoc\\PhpdocSummaryFixer <./../../../src/Fixer/Phpdoc/PhpdocSummaryFixer.php>`_
  27. - Test class: `PhpCsFixer\\Tests\\Fixer\\Phpdoc\\PhpdocSummaryFixerTest <./../../../tests/Fixer/Phpdoc/PhpdocSummaryFixerTest.php>`_
  28. The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.