File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
src/Standards/Squiz/Docs/WhiteSpace Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 1- <documentation title =" Function Opening Brace Whitespace " >
1+ <documentation title =" Function Opening Brace Space " >
22 <standard >
33 <![CDATA[
4- The opening brace for functions should be on a new line with no blank lines surrounding it .
4+ There should be no blank lines after the opening brace of a function .
55 ]]>
66 </standard >
7- <code_comparison >
8- <code title =" Valid: Opening brace is on a new line." >
9- <![CDATA[
10- function foo()
11- <em>{</em>
12- }
13- ]]>
14- </code >
15- <code title =" Invalid: Opening brace is on the same line as the function declaration." >
16- <![CDATA[
17- function foo() <em>{</em>
18- }
19- ]]>
20- </code >
21- </code_comparison >
227 <code_comparison >
238 <code title =" Valid: No blank lines after the opening brace." >
249 <![CDATA[
You can’t perform that action at this time.
0 commit comments