1
1
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
2
- index d1e1fad..ed67841 100644
2
+ index 087995d..5284a56 100644
3
3
--- a/tests/expected_report.txt
4
4
+++ b/tests/expected_report.txt
5
- @@ -17,26 +17,23 @@
5
+ @@ -17,26 +17,23 @@ tests/input/constants-var.php 6 0
6
6
tests/input/ControlStructures.php 28 0
7
7
tests/input/doc-comment-spacing.php 11 0
8
8
tests/input/duplicate-assignment-variable.php 1 0
9
9
- tests/input/EarlyReturn.php 7 0
10
10
- tests/input/example-class.php 47 0
11
- - tests/input/ExampleBackedEnum.php 3 0
11
+ - tests/input/ExampleBackedEnum.php 5 0
12
12
- tests/input/Exceptions.php 1 0
13
13
+ tests/input/EarlyReturn.php 6 0
14
14
+ tests/input/example-class.php 44 0
@@ -35,7 +35,7 @@ index d1e1fad..ed67841 100644
35
35
tests/input/semicolon_spacing.php 3 0
36
36
tests/input/single-line-array-spacing.php 5 0
37
37
tests/input/spread-operator.php 6 0
38
- @@ -46,17 +43,17 @@
38
+ @@ -46,17 +43,17 @@ tests/input/strings.php 3 0
39
39
tests/input/superfluous-naming.php 11 0
40
40
tests/input/test-case.php 8 0
41
41
tests/input/trailing_comma_on_array.php 1 0
@@ -50,10 +50,10 @@ index d1e1fad..ed67841 100644
50
50
- tests/input/UselessConditions.php 21 0
51
51
+ tests/input/UselessConditions.php 20 0
52
52
----------------------------------------------------------------------
53
- - A TOTAL OF 462 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES
53
+ - A TOTAL OF 464 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES
54
54
+ A TOTAL OF 426 ERRORS AND 2 WARNINGS WERE FOUND IN 47 FILES
55
55
----------------------------------------------------------------------
56
- - PHPCBF CAN FIX 378 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
56
+ - PHPCBF CAN FIX 380 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
57
57
+ PHPCBF CAN FIX 342 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
58
58
----------------------------------------------------------------------
59
59
@@ -85,16 +85,23 @@ index fc734db..caf1dbb 100644
85
85
foreach ($items as $item) {
86
86
if (! $item->isItem()) {
87
87
diff --git a/tests/fixed/ExampleBackedEnum.php b/tests/fixed/ExampleBackedEnum.php
88
- index cc38c54 ..fe54eb9 100644
88
+ index fd701eb ..fe54eb9 100644
89
89
--- a/tests/fixed/ExampleBackedEnum.php
90
90
+++ b/tests/fixed/ExampleBackedEnum.php
91
- @@ -3,7 +3,3 @@
91
+ @@ -3,14 +3,3 @@
92
92
declare(strict_types=1);
93
93
94
94
namespace ExampleBackedEnum;
95
95
-
96
96
- enum ExampleBackedEnum: int
97
97
- {
98
+ - case FOO = 0;
99
+ - case BAR = 1;
100
+ -
101
+ - case BAZ = 2;
102
+ -
103
+ - /** Brevis, primus coordinataes foris promissio de varius, barbatus heuretes. */
104
+ - case BAM = 1234;
98
105
- }
99
106
diff --git a/tests/fixed/Exceptions.php b/tests/fixed/Exceptions.php
100
107
index db7408b..9b146c6 100644
@@ -355,16 +362,25 @@ index 73944e3..a0e0b2e 100644
355
362
echo 5;
356
363
}
357
364
diff --git a/tests/input/ExampleBackedEnum.php b/tests/input/ExampleBackedEnum.php
358
- index 0c47286 ..fe54eb9 100644
365
+ index 3b09f47 ..fe54eb9 100644
359
366
--- a/tests/input/ExampleBackedEnum.php
360
367
+++ b/tests/input/ExampleBackedEnum.php
361
- @@ -3,7 +3,3 @@
368
+ @@ -3,16 +3,3 @@
362
369
declare(strict_types=1);
363
370
364
371
namespace ExampleBackedEnum;
365
372
-
366
373
- enum ExampleBackedEnum : int
367
374
- {
375
+ - case FOO = 0;
376
+ - case BAR = 1;
377
+ -
378
+ -
379
+ - case BAZ = 2;
380
+ -
381
+ -
382
+ - /** Brevis, primus coordinataes foris promissio de varius, barbatus heuretes. */
383
+ - case BAM = 1234;
368
384
- }
369
385
diff --git a/tests/input/Exceptions.php b/tests/input/Exceptions.php
370
386
index 3aaa30f..9b146c6 100644
0 commit comments