|
1 | 1 | diff --git a/tests/expected_report.txt b/tests/expected_report.txt |
2 | | -index 087995d..5284a56 100644 |
| 2 | +index 8547171..f01ece0 100644 |
3 | 3 | --- a/tests/expected_report.txt |
4 | 4 | +++ b/tests/expected_report.txt |
5 | | -@@ -17,26 +17,23 @@ tests/input/constants-var.php 6 0 |
| 5 | +@@ -13,30 +13,27 @@ tests/input/class-references.php 10 2 |
| 6 | + tests/input/ClassPropertySpacing.php 2 0 |
| 7 | + tests/input/concatenation_spacing.php 49 0 |
| 8 | + tests/input/constants-no-lsb.php 2 0 |
| 9 | +-tests/input/constants-var.php 13 0 |
| 10 | ++tests/input/constants-var.php 7 0 |
6 | 11 | tests/input/ControlStructures.php 28 0 |
7 | 12 | tests/input/doc-comment-spacing.php 11 0 |
8 | 13 | tests/input/duplicate-assignment-variable.php 1 0 |
9 | 14 | -tests/input/EarlyReturn.php 7 0 |
10 | | --tests/input/example-class.php 47 0 |
| 15 | +-tests/input/example-class.php 48 0 |
11 | 16 | -tests/input/ExampleBackedEnum.php 5 0 |
12 | 17 | -tests/input/Exceptions.php 1 0 |
13 | 18 | +tests/input/EarlyReturn.php 6 0 |
@@ -50,18 +55,27 @@ index 087995d..5284a56 100644 |
50 | 55 | -tests/input/UselessConditions.php 21 0 |
51 | 56 | +tests/input/UselessConditions.php 20 0 |
52 | 57 | ---------------------------------------------------------------------- |
53 | | --A TOTAL OF 468 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES |
54 | | -+A TOTAL OF 428 ERRORS AND 2 WARNINGS WERE FOUND IN 47 FILES |
| 58 | +-A TOTAL OF 476 ERRORS AND 2 WARNINGS WERE FOUND IN 50 FILES |
| 59 | ++A TOTAL OF 429 ERRORS AND 2 WARNINGS WERE FOUND IN 47 FILES |
55 | 60 | ---------------------------------------------------------------------- |
56 | | --PHPCBF CAN FIX 384 OF THESE SNIFF VIOLATIONS AUTOMATICALLY |
57 | | -+PHPCBF CAN FIX 344 OF THESE SNIFF VIOLATIONS AUTOMATICALLY |
| 61 | +-PHPCBF CAN FIX 391 OF THESE SNIFF VIOLATIONS AUTOMATICALLY |
| 62 | ++PHPCBF CAN FIX 345 OF THESE SNIFF VIOLATIONS AUTOMATICALLY |
58 | 63 | ---------------------------------------------------------------------- |
59 | 64 |
|
60 | 65 |
|
61 | 66 | diff --git a/tests/fixed/ControlStructures.php b/tests/fixed/ControlStructures.php |
62 | | -index f8f7f65..a653086 100644 |
| 67 | +index 480e419..a653086 100644 |
63 | 68 | --- a/tests/fixed/ControlStructures.php |
64 | 69 | +++ b/tests/fixed/ControlStructures.php |
| 70 | +@@ -11,7 +11,7 @@ use const PHP_VERSION; |
| 71 | + |
| 72 | + class ControlStructures |
| 73 | + { |
| 74 | +- private const int VERSION = PHP_VERSION; |
| 75 | ++ private const VERSION = PHP_VERSION; |
| 76 | + |
| 77 | + /** @return iterable<int> */ |
| 78 | + public function varAndIfNoSpaceBetween(): iterable |
65 | 79 | @@ -104,7 +104,7 @@ class ControlStructures |
66 | 80 |
|
67 | 81 | try { |
@@ -192,6 +206,37 @@ index 71e0cfb..2151b17 100644 |
192 | 206 | { |
193 | 207 | if (! $this->isAdmin) { |
194 | 208 | return null; |
| 209 | +diff --git a/tests/fixed/constants-var.php b/tests/fixed/constants-var.php |
| 210 | +index f10c235..d4268cb 100644 |
| 211 | +--- a/tests/fixed/constants-var.php |
| 212 | ++++ b/tests/fixed/constants-var.php |
| 213 | +@@ -13,19 +13,19 @@ const BAR_1 = 2; |
| 214 | + |
| 215 | + class Bar |
| 216 | + { |
| 217 | +- public const int BAZ = 456; |
| 218 | ++ public const BAZ = 456; |
| 219 | + |
| 220 | +- protected const string PROPERTY_1 = '1'; |
| 221 | +- protected const string PROPERTY_2 = '2'; |
| 222 | ++ protected const PROPERTY_1 = '1'; |
| 223 | ++ protected const PROPERTY_2 = '2'; |
| 224 | + } |
| 225 | + |
| 226 | + class Spacing |
| 227 | + { |
| 228 | +- public const string FOO = 'bar'; |
| 229 | +- public const string BAR = 'bar'; |
| 230 | ++ public const FOO = 'bar'; |
| 231 | ++ public const BAR = 'bar'; |
| 232 | + |
| 233 | +- public const string BAZ = 'baz'; |
| 234 | ++ public const BAZ = 'baz'; |
| 235 | + |
| 236 | + /** Brevis, primus coordinataes foris promissio de varius, barbatus heuretes. */ |
| 237 | +- private const int BAM = 1234; |
| 238 | ++ private const BAM = 1234; |
| 239 | + } |
195 | 240 | diff --git a/tests/fixed/example-class.php b/tests/fixed/example-class.php |
196 | 241 | index 4988dab..c31e53f 100644 |
197 | 242 | --- a/tests/fixed/example-class.php |
@@ -349,9 +394,18 @@ index 5e26ed8..bfa6d4f 100644 |
349 | 394 | + private $x = 1; |
350 | 395 | } |
351 | 396 | diff --git a/tests/input/ControlStructures.php b/tests/input/ControlStructures.php |
352 | | -index 73944e3..a0e0b2e 100644 |
| 397 | +index 7c20d0e..a0e0b2e 100644 |
353 | 398 | --- a/tests/input/ControlStructures.php |
354 | 399 | +++ b/tests/input/ControlStructures.php |
| 400 | +@@ -11,7 +11,7 @@ use const PHP_VERSION; |
| 401 | + |
| 402 | + class ControlStructures |
| 403 | + { |
| 404 | +- private const int VERSION = PHP_VERSION; |
| 405 | ++ private const VERSION = PHP_VERSION; |
| 406 | + |
| 407 | + /** @return iterable<int> */ |
| 408 | + public function varAndIfNoSpaceBetween(): iterable |
355 | 409 | @@ -93,7 +93,7 @@ class ControlStructures |
356 | 410 | } |
357 | 411 | try { |
|
0 commit comments