rspec/rules/S3973/php/rule.adoc

49 lines
599 B
Plaintext
Raw Normal View History

2020-06-30 12:48:39 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
if ($x > 0) // Noncompliant
doTheThing();
doTheOtherThing();
foo();
----
== Compliant Solution
----
if ($x > 0) {
doTheThing();
doTheOtherThing();
}
foo();
----
or
2020-06-30 12:48:39 +02:00
----
if ($x > 0)
doTheThing();
doTheOtherThing();
foo();
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]