~ubuntu-branches/ubuntu/saucy/php-codesniffer/saucy

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.0.1/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowCountInLoopsUnitTest.inc

  • Committer: Bazaar Package Importer
  • Author(s): Jan Wagner
  • Date: 2008-03-21 23:29:33 UTC
  • Revision ID: james.westby@ubuntu.com-20080321232933-za8kvi1bgvrvud6z
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
for ($i = 0; $i < count($array); $i++) {
 
3
}
 
4
 
 
5
$num = count($array);
 
6
 
 
7
while ($i < count($array)) {
 
8
}
 
9
 
 
10
do {
 
11
} while ($i < count($array));
 
12
 
 
13
for ($i = 0; $i < count($this->children); $i++) {
 
14
}
 
15
 
 
16
?>