1<documentation title="Scope Indentation">
2    <standard>
3    <![CDATA[
4    Any scope openers except for switch statements should be indented 1 level.  This includes classes, functions, and control structures.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Consistent indentation level for scope.">
9        <![CDATA[
10function foo()
11{
12<em>    </em>if ($test) {
13<em>        </em>$var = 1;
14<em>    </em>}
15}
16        ]]>
17        </code>
18        <code title="Invalid: Indentation is not used for scope.">
19        <![CDATA[
20function foo()
21{
22<em></em>if ($test) {
23<em></em>$var = 1;
24<em></em>}
25}
26        ]]>
27        </code>
28    </code_comparison>
29</documentation>
30