File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 202
202
<rule ref =" SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment" />
203
203
<!-- Forbid assignments in conditions -->
204
204
<rule ref =" SlevomatCodingStandard.ControlStructures.AssignmentInCondition" />
205
+ <!-- Require consistent spacing for control structures -->
206
+ <rule ref =" SlevomatCodingStandard.ControlStructures.ControlStructureSpacing" >
207
+ <properties >
208
+ <property name =" tokensToCheck" type =" array" >
209
+ <element value =" T_RETURN" />
210
+ </property >
211
+ </properties >
212
+ </rule >
205
213
<!-- Forbid fancy yoda conditions -->
206
214
<rule ref =" SlevomatCodingStandard.ControlStructures.DisallowYodaComparison" />
207
215
<!-- Require usage of early exit -->
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ tests/input/constants-var.php 3 0
12
12
tests/input/doc-comment-spacing.php 10 0
13
13
tests/input/duplicate-assignment-variable.php 1 0
14
14
tests/input/EarlyReturn.php 6 0
15
- tests/input/example-class.php 32 0
15
+ tests/input/example-class.php 33 0
16
16
tests/input/forbidden-comments.php 8 0
17
17
tests/input/forbidden-functions.php 6 0
18
18
tests/input/LowCaseTypes.php 2 0
@@ -34,9 +34,9 @@ tests/input/UnusedVariables.php 1 0
34
34
tests/input/useless-semicolon.php 2 0
35
35
tests/input/UselessConditions.php 20 0
36
36
----------------------------------------------------------------------
37
- A TOTAL OF 257 ERRORS AND 0 WARNINGS WERE FOUND IN 30 FILES
37
+ A TOTAL OF 258 ERRORS AND 0 WARNINGS WERE FOUND IN 30 FILES
38
38
----------------------------------------------------------------------
39
- PHPCBF CAN FIX 209 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
39
+ PHPCBF CAN FIX 210 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
40
40
----------------------------------------------------------------------
41
41
42
42
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ public function getFoo() : ?int
57
57
public function getIterator () : array
58
58
{
59
59
assert ($ this ->bar !== null );
60
+
60
61
return new ArrayIterator ($ this ->bar );
61
62
}
62
63
You can’t perform that action at this time.
0 commit comments