Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<documentation title="Opening Brace in Function Declarations">
2
    <standard>
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.
5
    ]]>
6
    </standard>
7
    <code_comparison>
8
        <code title="Valid: brace on next line">
9
        <![CDATA[
10
function fooFunction($arg1, $arg2 = '')
11
<em>{</em>
12
    ...
13
}
14
        ]]>
15
        </code>
16
        <code title="Invalid: brace on same line">
17
        <![CDATA[
18
function fooFunction($arg1, $arg2 = '') <em>{</em>
19
    ...
20
}
21
        ]]>
22
        </code>
23
    </code_comparison>
24
</documentation>