|
@@ -236,19 +236,20 @@ Choose from the list of available rules:
|
|
|
Ensure there is no code on the same line as the PHP open tag and it is
|
|
|
followed by a blank line.
|
|
|
|
|
|
-* **blank_line_before_control_statement** [@Symfony]
|
|
|
+* **blank_line_before_return**
|
|
|
|
|
|
- An empty line feed should precede a control statement.
|
|
|
+ An empty line feed should precede a return statement (deprecated, use
|
|
|
+ ``blank_line_before_statement`` instead).
|
|
|
|
|
|
- Configuration options:
|
|
|
+* **blank_line_before_statement** [@Symfony]
|
|
|
|
|
|
- - ``statements`` (``array``): list of control statements to fix; defaults to
|
|
|
- ``['return']``
|
|
|
+ An empty line feed must precede any configured statement.
|
|
|
|
|
|
-* **blank_line_before_return**
|
|
|
+ Configuration options:
|
|
|
|
|
|
- An empty line feed should precede a return statement (deprecated, use
|
|
|
- ``blank_line_before_control_statement`` instead).
|
|
|
+ - ``statements`` (``array``): list of statements which must be must be preceded by
|
|
|
+ an empty line; defaults to ``['break', 'continue', 'declare', 'return',
|
|
|
+ 'throw', 'try']``
|
|
|
|
|
|
* **braces** [@PSR2, @Symfony]
|
|
|
|