~ubuntu-branches/ubuntu/saucy/php-codesniffer/saucy

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.0.1/CodeSniffer/Standards/PEAR/Docs/NamingConventions/ValidFunctionNameStandard.xml

  • Committer: Bazaar Package Importer
  • Author(s): Jack Bates
  • Date: 2008-10-01 17:39:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081001173943-2dy06n1e8zwyw1o8
Tags: 1.1.0-1
* New upstream release
* Acknowledge NMU, thanks Jan

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<documentation title="Function and Method Names">
2
 
    <standard>
3
 
    <![CDATA[
4
 
    Functions and methods should be named using the "studly caps" style (also referred to as "bumpy case" or "camel caps"). Functions should in addition have the package name as a prefix, to avoid name collisions between packages. The initial letter of the name (after the prefix) is lowercase, and each letter that starts a new "word" is capitalized.
5
 
    ]]>
6
 
    </standard>
7
 
    <code_comparison>
8
 
        <code title="Examples of valid function names">
9
 
        <![CDATA[
10
 
connect()
11
 
getData()
12
 
buildSomeWidget()
13
 
XML_RPC_serializeData()
14
 
        ]]>
15
 
        </code>
16
 
        <code title="Examples of invalid function names">
17
 
        <![CDATA[
18
 
Connect()
19
 
get_data()
20
 
        ]]>
21
 
        </code>
22
 
    </code_comparison>
23
 
</documentation>