rspec/rules/S116/php/rule.adoc

46 lines
776 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
2020-06-30 10:16:44 +02:00
include::../description.adoc[]
Using the regular expression ``++^[a-z][a-zA-Z0-9]*$++``, the noncompliant code below:
2020-06-30 10:16:44 +02:00
[source,php,diff-id=1,diff-type=noncompliant]
2020-06-30 10:16:44 +02:00
----
class MyClass {
$my_field;
}
----
Should be replaced with:
2020-06-30 10:16:44 +02:00
[source,php,diff-id=1,diff-type=compliant]
2020-06-30 10:16:44 +02:00
----
class MyClass {
$myField;
}
----
== Resources
=== Documentation
* Wikipedia - https://en.wikipedia.org/wiki/Naming_convention_(programming)[Naming Convention (programming)]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]