rspec/rules/S1068/php/rule.adoc
Fred Tingaud 281206d0f4
Modify S1068: Migrate to LayC - unused private fields
Co-authored-by: Renaud T. <125455319+renaud-tognelli-sonarsource@users.noreply.github.com>
2023-10-10 18:27:17 +02:00

31 lines
498 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
[source,php]
----
class MyClass {
private $foo = 4; // Noncompliant: foo is unused and should be removed
public function compute($a) {
return $a * 4;
}
}
----
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[]