~ubuntu-branches/ubuntu/utopic/php-codesniffer/utopic-proposed

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.1.0/CodeSniffer/Standards/Generic/Docs/PHP/LowerCaseConstantStandard.xml

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<documentation title="PHP Constants">
2
 
    <standard>
3
 
    <![CDATA[
4
 
    The <em>true</em>, <em>false</em> and <em>null</em> constants must always be lowercase.
5
 
    ]]>
6
 
    </standard>
7
 
    <code_comparison>
8
 
        <code title="Valid: lowercase constants">
9
 
        <![CDATA[
10
 
if ($var === <em>false</em> || $var === <em>null</em>) {
11
 
    $var = <em>true</em>;
12
 
}
13
 
        ]]>
14
 
        </code>
15
 
        <code title="Invalid: uppercase constants">
16
 
        <![CDATA[
17
 
if ($var === <em>FALSE</em> || $var === <em>NULL</em>) {
18
 
    $var = <em>TRUE</em>;
19
 
}
20
 
        ]]>
21
 
        </code>
22
 
    </code_comparison>
23
 
</documentation>