rspec/rules/S1106/php/rule.adoc

44 lines
618 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
function myMethod() { // Noncompliant
if(something) { // Noncompliant
executeTask();
} else { //Noncompliant
doSomethingElse();
}
}
----
== Compliant Solution
----
function myMethod()
{
if(something)
{
executeTask();
} else
{
doSomethingElse();
}
}
----
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[]