rspec/rules/S127/php/rule.adoc

29 lines
391 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
----
for ($i = 0; $i < 10; $i++) {
echo $i;
if(condition) {
$i = 20;
}
}
----
== Compliant Solution
----
for ($i = 0; $i < 10; $i++) {
echo $i;
}
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]