rspec/rules/S3973/php/rule.adoc
Alban Auzeill 2c306d110e Fix code block ambiguity with old header style
Ensure blank line before list and clean the one leading space
2020-06-30 17:16:12 +02:00

32 lines
308 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
----
if ($x > 0) // Noncompliant
doTheThing();
doTheOtherThing();
foo();
----
== Compliant Solution
----
if ($x > 0) {
doTheThing();
doTheOtherThing();
}
foo();
----
or
----
if ($x > 0)
doTheThing();
doTheOtherThing();
foo();
----