File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,29 @@ $this->object
8585 ->method4();
8686```
8787
88+ ### Method line jump declaration
89+
90+ Do not arbitrary jump lines in method declaration : Only jump lines when max line chars is reached.
91+
92+ ##### Correct
93+
94+ ``` php
95+ public function handle(ServerRequestInterface $request, ServerHandlerInterface $handler): void
96+ {
97+ }
98+ ```
99+ ##### Not correct
100+
101+ ``` php
102+ // Max line chars was not reached, we should not jump lines between params
103+ public function handle(
104+ ServerRequestInterface $request,
105+ ServerHandlerInterface $handler
106+ ): void
107+ {
108+ }
109+ ```
110+
88111### Class naming
89112
90113If your class use a type, a role or a pattern, you should declare it in the class name.
You can’t perform that action at this time.
0 commit comments