rspec/rules/S2251/php/rule.adoc

27 lines
396 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
for ($i = 0; $i < $length; $i--) { // Noncompliant
//...
}
----
== Compliant Solution
----
for ($i = 0; $i < $length; $i++) {
//...
}
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]