8000 Coding standard improvements (closes #753) · GromNaN/symfony-docs@8993150 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8993150

Browse files
helmerweaverryan
authored andcommitted
Coding standard improvements (closes symfony#753)
1 parent 3fd0e21 commit 8993150

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contributing/code/standards.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Structure
7777
* Add a single space before the opening parenthesis of a control keyword
7878
(`if`, `else`, `for`, `while`, ...);
7979

80-
* Add a blank line before `return` statements;
80+
* Add a blank line before `return` statements unless return is alone inside a statement-group;
8181

8282
* Don't add trailing spaces at the end of lines;
8383

@@ -128,6 +128,8 @@ Documentation
128128

129129
* Add PHPDoc blocks for all classes, methods, and functions;
130130

131+
* Omit `@return` tag in case method does not return anything;
132+
131133
* The `@package` and `@subpackage` annotations are not used.
132134

133135
License

0 commit comments

Comments
 (0)
0