rspec/rules/S1782/rule.adoc

32 lines
526 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
The goal of this coding rule is to make it obvious at first look that a class ``++extends++`` some other classes and/or ``++implements++`` some interfaces. The names of extended classes or implemented interfaces can be located on next lines.
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,text]
----
<?php
class ClassName
extends ParentClass {...}
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,text]
----
<?php
class ClassName extends ParentClass {...}
----
or
2021-02-02 15:02:10 +01:00
2022-02-04 17:28:24 +01:00
[source,text]
----
<?php
class ClassName extends
ParentClass {...}
----