no_blank_lines_after_class_opening.rst 727 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ===========================================
  2. Rule ``no_blank_lines_after_class_opening``
  3. ===========================================
  4. There should be no empty lines after class opening brace.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. final class Sample
  14. {
  15. -
  16. protected function foo()
  17. {
  18. }
  19. }
  20. Rule sets
  21. ---------
  22. The rule is part of the following rule sets:
  23. - `@PER <./../../ruleSets/PER.rst>`_
  24. - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_
  25. - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_
  26. - `@PSR12 <./../../ruleSets/PSR12.rst>`_
  27. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
  28. - `@Symfony <./../../ruleSets/Symfony.rst>`_