📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 10:46:26
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Docs
/
CodeAnalysis
📍 /opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis
🔄 Refresh
✏️
Editing: ForLoopShouldBeWhileLoopStandard.xml
Read Only
<documentation title="Condition-Only For Loops"> <standard> <![CDATA[ For loops that have only a second expression (the condition) should be converted to while loops. ]]> </standard> <code_comparison> <code title="Valid: A for loop is used with all three expressions."> <![CDATA[ for (<em>$i = 0</em>; $i < 10; <em>$i++</em>) { echo "{$i}\n"; } ]]> </code> <code title="Invalid: A for loop is used without a first or third expression."> <![CDATA[ for (<em></em>;$test;<em></em>) { $test = doSomething(); } ]]> </code> </code_comparison> </documentation>
💾 Save Changes
❌ Cancel