~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/ControlStructures/ForLoopDeclarationUnitTest.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
 
 
3
// Valid.
 
4
for ($i = 0; $i < 10; $i++) {
 
5
}
 
6
 
 
7
// Invalid.
 
8
for ( $i = 0; $i < 10; $i++ ) {
 
9
}
 
10
 
 
11
for ($i = 0;  $i < 10;  $i++) {
 
12
}
 
13
 
 
14
for ($i = 0 ; $i < 10 ; $i++) {
 
15
}
 
16
 
 
17
for ($i = 0;$i < 10;$i++) {
 
18
}
 
19
 
 
20
// The works.
 
21
for ( $i = 0 ;  $i < 10 ;  $i++ ) {
 
22
}
 
23
 
 
24
?>
 
 
b'\\ No newline at end of file'