File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 206
206
<!-- Forbid assignments in conditions -->
207
207
<rule ref =" SlevomatCodingStandard.ControlStructures.AssignmentInCondition" />
208
208
<!-- Require consistent spacing for block structures -->
209
- <rule ref =" SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing" />
209
+ <rule ref =" SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing" >
210
+ <exclude name =" SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing.IncorrectLinesCountBeforeControlStructure" />
211
+ <exclude name =" SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing.IncorrectLinesCountBeforeFirstControlStructure" />
212
+ </rule >
210
213
<!-- Forbid fancy yoda conditions -->
211
214
<rule ref =" SlevomatCodingStandard.ControlStructures.DisallowYodaComparison" />
212
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 4 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 48 0
15
+ tests/input/example-class.php 45 0
16
16
tests/input/forbidden-comments.php 8 0
17
17
tests/input/forbidden-functions.php 6 0
18
18
tests/input/inline_type_hint_assertions.php 7 0
@@ -38,9 +38,9 @@ tests/input/use-ordering.php 1 0
38
38
tests/input/useless-semicolon.php 2 0
39
39
tests/input/UselessConditions.php 20 0
40
40
----------------------------------------------------------------------
41
- A TOTAL OF 293 ERRORS AND 0 WARNINGS WERE FOUND IN 34 FILES
41
+ A TOTAL OF 290 ERRORS AND 0 WARNINGS WERE FOUND IN 34 FILES
42
42
----------------------------------------------------------------------
43
- PHPCBF CAN FIX 232 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
43
+ PHPCBF CAN FIX 229 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
44
44
----------------------------------------------------------------------
45
45
46
46
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ public function throwWhenInvalid() : void
127
127
public function trySwitchSpace () : void
128
128
{
129
129
try {
130
+ $ var = 1 ;
130
131
switch (self ::VERSION ) {
131
132
default :
132
133
}
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ public function throwWhenInvalid() : void
122
122
public function trySwitchSpace () : void
123
123
{
124
124
try {
125
+ $ var = 1 ;
125
126
switch (self ::VERSION ) {
126
127
default :
127
128
}
You can’t perform that action at this time.
0 commit comments