Skip to content

Commit 59a09bf

Browse files
committed
Added a new rule about class inheritance and interfaces
1 parent 6e36307 commit 59a09bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contributing/code/standards.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ Structure
153153
that are not intended to be instantiated from the outside and thus are not
154154
concerned by the `PSR-0`_ and `PSR-4`_ autoload standards;
155155

156+
* Declare the class inheritance (if any) and all the implemented interfaces (if
157+
any) in the same line as the class name;
158+
156159
* Declare class properties before methods;
157160

158161
* Declare public methods first, then protected ones and finally private ones.

0 commit comments

Comments
 (0)