1<documentation title="Function Opening Brace Whitespace">
2    <standard>
3    <![CDATA[
4    The opening brace for functions should be on a new line with no blank lines surrounding it.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Opening brace is on a new line.">
9        <![CDATA[
10function 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[
17function foo() <em>{</em>
18}
19]]>
20        </code>
21    </code_comparison>
22    <code_comparison>
23        <code title="Valid: No blank lines after the opening brace.">
24        <![CDATA[
25function foo()
26{
27<em>    return 42;</em>
28}
29]]>
30        </code>
31        <code title="Invalid: A blank line after the opening brace.">
32        <![CDATA[
33function foo()
34{
35<em></em>
36    return 42;
37}
38]]>
39        </code>
40    </code_comparison>
41</documentation>
42