rspec/rules/S1808/php/message.adoc

22 lines
1.8 KiB
Plaintext

=== Message
* Add a blank line after this "namespace XXX" declaration.
* Move the use declarations after the namespace declarations.
* Add a blank line after this "use" declaration.
* Move this open curly brace to the end of the previous line.
* Move this open curly brace to the beginning of the next line.
* Put [only] one space between the closing parenthesis and the opening curly brace.
* Put [only] one space between this "XXXX" keyword and the opening [parenthesis|curly brace].
* Remove all space [after the opening parenthesis |& before the closing parenthesis].
* Put exactly one space after each ";" character in the ``++for++`` statement.
* [Remove any space before comma separated arguments] [Put exactly one space after comma separated arguments]
* Remove all space between the method name "XXXX" and the opening parenthesis.
* Put exactly one space after and before [``++as++``|``++=>++``] in ``++foreach++`` statement.
* Move this ["else"|"catch"|"finally"] to the same line as the previous closing curly brace.
* [Either split this list into multiple lines or move it on the same line.] [Align all interfaces in this list at column "XX".]
* [Either split this list into multiple lines, aligned at column "XX" or put all elements on line "YYY".] [Align all arguments in this list at column "XX".] [Move the closing parenthesis with the opening brace on the next line.]
* [Either split this list into multiple lines, aligned at column "xx" or put all arguments on line "yyy".] [Align all arguments in this list at column "XX".] [Move the closing parenthesis on the next line.]
* [Put exactly one space between the "function" keyword and the opening parenthesis.] [Put exactly one space before and after the "use" keyword.]
* Move ["extends"] [and] ["implements"] keyword[s] on line {0} to the same line as the declaration of its class name, "XX".