12345678910111213141516171819202122232425262728293031323334353637383940 |
- ===========================================
- Rule ``single_blank_line_before_namespace``
- ===========================================
- There should be exactly one blank line before a namespace declaration.
- Warning
- -------
- This rule is deprecated and will be removed on next major version
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- You should use ``blank_lines_before_namespace`` instead.
- Examples
- --------
- Example #1
- ~~~~~~~~~~
- .. code-block:: diff
- --- Original
- +++ New
- -<?php namespace A {}
- +<?php
- +
- +namespace A {}
- Example #2
- ~~~~~~~~~~
- .. code-block:: diff
- --- Original
- +++ New
- <?php
- -
- namespace A{}
|