~ubuntu-branches/ubuntu/trusty/php-codesniffer/trusty

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.1.0/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc

  • 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
<?php
 
2
$myArray['key']                = $value;
 
3
$myArray[/* key start */'key'] = $value;
 
4
$myArray[/* key start */'key'/* key end */] = $value;
 
5
$myArray  [  'key'  ]            = $value;
 
6
if ($array[($index + 1)] === true) {
 
7
} else if ($array  [ ($index + 1) ] === null) {
 
8
}
 
9
?>
 
 
b'\\ No newline at end of file'