method_separation.rst 498 B

1234567891011121314151617181920212223242526272829
  1. ==========================
  2. Rule ``method_separation``
  3. ==========================
  4. .. warning:: This rule is deprecated and will be removed on next major version.
  5. You should use ``class_attributes_separation`` instead.
  6. Methods must be separated with one blank line.
  7. Examples
  8. --------
  9. Example #1
  10. ~~~~~~~~~~
  11. .. code-block:: diff
  12. --- Original
  13. +++ New
  14. @@ -4,7 +4,8 @@
  15. protected function foo()
  16. {
  17. }
  18. +
  19. protected function bar()
  20. {
  21. }
  22. }