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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.5.3/CodeSniffer/Standards/Squiz/Docs/WhiteSpace/ScopeKeywordSpacingStandard.xml

  • Committer: Package Import Robot
  • Author(s): David Prévot
  • Date: 2014-07-21 14:42:41 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: package-import@ubuntu.com-20140721144241-t0v9knmgtzftbsw6
Tags: upstream-1.5.3
Import upstream version 1.5.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<documentation title="Scope Keyword Spacing">
 
2
    <standard>
 
3
    <![CDATA[
 
4
    The php keywords static, public, private, and protected should have one space after them.
 
5
    ]]>
 
6
    </standard>
 
7
    <code_comparison>
 
8
        <code title="Valid: A single space following the keywords.">
 
9
        <![CDATA[
 
10
public<em> </em>static<em> </em>function foo()
 
11
{
 
12
}
 
13
]]>
 
14
        </code>
 
15
        <code title="Invalid: Multiple spaces following the keywords.">
 
16
        <![CDATA[
 
17
public<em>  </em>static<em>  </em>function foo()
 
18
{
 
19
}
 
20
]]>
 
21
        </code>
 
22
    </code_comparison>
 
23
</documentation>