File tree 3 files changed +6
-2
lines changed 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " ^5.4.0 || ^7.0" ,
14
- "squizlabs/php_codesniffer" : " ^ 3.3" ,
14
+ "squizlabs/php_codesniffer" : " ~ 3.3.0 " ,
15
15
"phpmd/phpmd" : " ^2.0"
16
16
},
17
17
"require-dev" : {
Original file line number Diff line number Diff line change @@ -170,6 +170,6 @@ protected function findActualReturnType(
170
170
$ functionStart
171
171
) {
172
172
$ properties = $ file ->getMethodProperties ($ functionStart );
173
- return $ properties ['return_type ' ];
173
+ return ltrim ( $ properties ['return_type ' ], ' ? ' ) ;
174
174
}
175
175
}
Original file line number Diff line number Diff line change 20
20
<exclude name =" Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast" />
21
21
<exclude name =" Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned" />
22
22
<exclude name =" Squiz.Arrays.ArrayDeclaration.MultiLineNotAllowed" />
23
+ <exclude name =" Squiz.Arrays.ArrayDeclaration.NoComma" />
24
+ <exclude name =" Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned" />
23
25
</rule >
24
26
25
27
<!-- Code analysis -->
39
41
<exclude name =" Generic.Commenting.DocComment.ContentBeforeClose" />
40
42
<exclude name =" Generic.Commenting.DocComment.MissingShort" />
41
43
<exclude name =" Generic.Commenting.DocComment.SpacingBeforeTags" />
44
+ <exclude name =" Generic.Commenting.DocComment.ParamNotFirst" />
45
+ <exclude name =" Generic.Commenting.DocComment.TagValueIndent" />
42
46
</rule >
43
47
<rule ref =" Squiz.Commenting.FunctionComment" >
44
48
<exclude name =" Squiz.Commenting.FunctionComment.MissingParamComment" />
You can’t perform that action at this time.
0 commit comments