File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -153,13 +153,19 @@ Structure
153
153
that are not intended to be instantiated from the outside and thus are not
154
154
concerned by the `PSR-0 `_ and `PSR-4 `_ autoload standards;
155
155
156
+ * Declare the class inheritance and all the implemented interfaces on the same
8000
157
+ line as the class name;
158
+
156
159
* Declare class properties before methods;
157
160
158
161
* Declare public methods first, then protected ones and finally private ones.
159
162
The exceptions to this rule are the class constructor and the ``setUp `` and
160
163
``tearDown `` methods of PHPUnit tests, which should always be the first methods
161
164
to increase readability;
162
165
166
+ * Declare all the arguments on the same line as the method/function name, no
167
+ matter how many arguments there are;
168
+
163
169
* Use parentheses when instantiating classes regardless of the number of
164
170
arguments the constructor has;
165
171
You can’t perform that action at this time.
67D
template>
0 commit comments