rspec/rules/S115/php/rule.adoc
2021-01-27 13:42:22 +01:00

24 lines
312 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
With the default regular expression ``++^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$++``:
----
define("const1", true);
class Foo {
const const2 = "bar";
}
----
== Compliant Solution
----
define("CONST1", true);
class Foo {
const CONST2 = "bar";
}
----