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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-2.3.3/CodeSniffer/Standards/Squiz/Docs/Arrays/ArrayBracketSpacingStandard.xml

  • Committer: Package Import Robot
  • Author(s): David Prévot, Greg Sherwood
  • Date: 2015-06-24 13:41:36 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20150624134136-dv60dnl6s20tdxwr
Tags: 2.3.3-1
[ Greg Sherwood ]
Prepare for 2.3.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<documentation title="Array Bracket Spacing">
 
2
    <standard>
 
3
    <![CDATA[
 
4
    When referencing arrays you should not put whitespace around the opening bracket or before the closing bracket.
 
5
    ]]>
 
6
    </standard>
 
7
    <code_comparison>
 
8
        <code title="Valid: No spaces around the brackets.">
 
9
        <![CDATA[
 
10
$foo<em></em>[<em></em>'bar'<em></em>];
 
11
]]>
 
12
        </code>
 
13
        <code title="Invalid: Spaces around the brackets.">
 
14
        <![CDATA[
 
15
$foo<em> </em>[<em> </em>'bar'<em> </em>];
 
16
]]>
 
17
        </code>
 
18
    </code_comparison>
 
19
</documentation>