:lang: php

include::../why.adoc[]

=== Noncompliant code example

[source,php,diff-id=1,diff-type=noncompliant]
----
$x = (($y / 2 + 1)); // Noncompliant

if ($a && (($x + $y > 0))) { // Noncompliant
  return (($x + 1)); // Noncompliant
}
----

=== Compliant solution

[source,php,diff-id=1,diff-type=compliant]
----
$x = ($y / 2 + 1);

if ($a && ($x + $y > 0)) {
  return ($x + 1);
}
----

include::../rspecator.adoc[]
