rspec/rules/S1068/php/rule.adoc

44 lines
624 B
Plaintext

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