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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.3.4/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

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
 
 
17
 
 
18
for ($i = 0; $i < sizeof($array); $i++) {
 
19
}
 
20
 
 
21
$num = sizeof($array);
 
22
 
 
23
while ($i < sizeof($array)) {
 
24
}
 
25
 
 
26
do {
 
27
} while ($i < sizeof($array));
 
28
 
 
29
for ($i = 0; $i < sizeof($this->children); $i++) {
 
30
}
 
31
 
 
32
 
 
33
 
 
34
 
 
35
for ($i = 0; $i < strlen($string); $i++) {
 
36
}
 
37
 
 
38
$num = strlen($string);
 
39
 
 
40
while ($i < strlen($string)) {
 
41
}
 
42
 
 
43
do {
 
44
} while ($i < strlen($string));
 
45
 
 
46
for ($i = 0; $i < strlen($this->string); $i++) {
 
47
}
 
48
 
 
49
for ($i = sizeof($array); $i > 0; $i--) {
 
50
}
 
51
 
 
52
?>