~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/ValidClassNameStandard.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="Class Names">
2
 
    <standard>
3
 
    <![CDATA[
4
 
    Classes should be given descriptive names. Avoid using abbreviations where possible. Class names should always begin with an uppercase letter. The PEAR class hierarchy is also reflected in the class name, each level of the hierarchy separated with a single underscore.
5
 
    ]]>
6
 
    </standard>
7
 
    <code_comparison>
8
 
        <code title="Examples of valid class names">
9
 
        <![CDATA[
10
 
Log
11
 
Net_Finger
12
 
HTML_Upload_Error
13
 
        ]]>
14
 
        </code>
15
 
        <code title="Examples of invalid class names">
16
 
        <![CDATA[
17
 
log
18
 
NetFinger
19
 
HTML-Upload-Error
20
 
        ]]>
21
 
        </code>
22
 
    </code_comparison>
23
 
</documentation>