== Why is this an issue?

include::../description.adoc[]

=== Noncompliant code example

[source,php]
----
if (compare($a+$x, $a+$x) != 0) { // Noncompliant 
  //... 
} 

if (compare(getValue($a), getValue($a)) != 0) { // Noncompliant 
  // ... 
} 
----

=== Compliant solution

[source,php]
----
if (compare($a+$y, $a+$x) != 0) { 
  //... 
} 

$v1 = getValue($a); 
$v2 = getValue($a); 
if (compare($v1, $v2) != 0) { 
  // ... 
} 
----
ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

include::../message.adoc[]

include::../highlighting.adoc[]

endif::env-github,rspecator-view[]
