Seditio Source
Root
|
.
/
othercms
/
croogo-4.0.7
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
CodeAnalysis
/
ForLoopShouldBeWhileLoopUnitTest.inc
<?php
for ($i = 0; $i < 10; $i++) {
// Everything is fine
}
for (; $it->valid();) {
$it->next();
}
for (;(($it1->valid() && $foo) || (!$it2->value && ($bar || false)));/*Could be ignored*/) {
$it1->next();
$it2->next();
}