You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Standards/Generic/Docs/Functions/OpeningFunctionBraceBsdAllmanStandard.xml
+8-6
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,24 @@
1
-
<documentationtitle="Opening Brace in Function Declarations">
1
+
<documentationtitle="Opening Function Brace Bsd Allman">
2
2
<standard>
3
3
<![CDATA[
4
-
Function declarations follow the "BSD/Allman style". The function brace is on the line following the function declaration and is indented to the same column as the start of the function declaration.
4
+
Function declarations must follow the "BSD/Allman style". The opening brace is on the line
5
+
following the function declaration and is indented to the same column as the start of the
6
+
function declaration. The brace must be the last content on the line.
5
7
]]>
6
8
</standard>
7
9
<code_comparison>
8
-
<codetitle="Valid: Brace on next line.">
10
+
<codetitle="Valid: Opening brace on the next line.">
9
11
<![CDATA[
10
12
function fooFunction($arg1, $arg2 = '')
11
13
<em>{</em>
12
-
...
14
+
// Do something
13
15
}
14
16
]]>
15
17
</code>
16
-
<codetitle="Invalid: Brace on same line.">
18
+
<codetitle="Invalid: Opening brace on the same line.">
17
19
<![CDATA[
18
20
function fooFunction($arg1, $arg2 = '') <em>{</em>
0 commit comments