Skip to content

Commit cbead65

Browse files
committed
Implement suggestion from code review (avoid empty function body in the code examples)
1 parent c58487e commit cbead65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<documentation title="Opening Function Brace Kerninghan Ritchie">
22
<standard>
33
<![CDATA[
4-
The function opening brace must be on the same line as the function declaration closing
5-
parenthesis, with exactly one space between them, and must be the last content on the line.
4+
The function opening brace must be on the same line as the function declaration, with exactly
5+
one space between them, and must be the last content on the line.
66
]]>
77
</standard>
88
<code_comparison>
99
<code title="Valid: Opening brace on the same line.">
1010
<![CDATA[
1111
function fooFunction($arg1, $arg2 = '')<em> {</em>
12+
// Do something.
1213
}
1314
]]>
1415
</code>
1516
<code title="Invalid: Opening brace on the next line.">
1617
<![CDATA[
1718
function fooFunction($arg1, $arg2 = '')
1819
<em>{</em>
20+
// Do something.
1921
}
2022
]]>
2123
</code>

0 commit comments

Comments
 (0)