rspec/rules/S2251/php/rule.adoc

38 lines
525 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,php]
----
for ($i = 0; $i < $length; $i--) { // Noncompliant
//...
}
----
=== Compliant solution
[source,php]
----
for ($i = 0; $i < $length; $i++) {
//...
}
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]