1
1
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
2
- index 1ecfaaa..d18e990 100644
2
+ index 1ecfaaa..262b310 100644
3
3
--- a/tests/expected_report.txt
4
4
+++ b/tests/expected_report.txt
5
- @@ -11,40 +11,40 @@ tests/input/concatenation_spacing.php 49 0
5
+ @@ -6,45 +6,45 @@ FILE ERRORS WARNINGS
6
+ tests/input/array_indentation.php 10 0
7
+ tests/input/assignment-operators.php 4 0
8
+ tests/input/binary_operators.php 9 0
9
+ - tests/input/class-references.php 10 0
10
+ + tests/input/class-references.php 15 0
11
+ tests/input/concatenation_spacing.php 49 0
6
12
tests/input/constants-no-lsb.php 2 0
7
13
tests/input/constants-var.php 4 0
8
14
tests/input/ControlStructures.php 17 2
@@ -11,24 +17,26 @@ index 1ecfaaa..d18e990 100644
11
17
tests/input/duplicate-assignment-variable.php 1 0
12
18
tests/input/EarlyReturn.php 6 0
13
19
- tests/input/example-class.php 38 0
14
- + tests/input/example-class.php 42 0
20
+ + tests/input/example-class.php 41 0
15
21
tests/input/forbidden-comments.php 14 0
16
22
tests/input/forbidden-functions.php 5 0
17
23
tests/input/fully-qualified-and-fallbacks.php 1 0
18
- tests/input/inline_type_hint_assertions.php 7 0
24
+ - tests/input/inline_type_hint_assertions.php 7 0
19
25
- tests/input/LowCaseTypes.php 4 0
20
26
- tests/input/namespaces-spacing.php 8 0
21
27
- tests/input/NamingCamelCase.php 9 0
28
+ + tests/input/inline_type_hint_assertions.php 8 0
22
29
+ tests/input/LowCaseTypes.php 3 0
23
30
+ tests/input/namespaces-spacing.php 12 0
24
31
+ tests/input/NamingCamelCase.php 8 0
25
32
tests/input/negation-operator.php 2 0
26
33
tests/input/new_with_parentheses.php 18 0
27
34
tests/input/not_spacing.php 6 0
28
35
tests/input/null_coalesce_operator.php 3 0
29
- tests/input/optimized-functions.php 1 0
36
+ - tests/input/optimized-functions.php 1 0
30
37
- tests/input/return_type_on_closures.php 29 0
31
38
- tests/input/return_type_on_methods.php 25 0
39
+ + tests/input/optimized-functions.php 2 0
32
40
+ tests/input/return_type_on_closures.php 17 0
33
41
+ tests/input/return_type_on_methods.php 13 0
34
42
tests/input/semicolon_spacing.php 3 0
@@ -50,20 +58,20 @@ index 1ecfaaa..d18e990 100644
50
58
+ tests/input/UselessConditions.php 23 0
51
59
----------------------------------------------------------------------
52
60
- A TOTAL OF 388 ERRORS AND 2 WARNINGS WERE FOUND IN 38 FILES
53
- + A TOTAL OF 356 ERRORS AND 2 WARNINGS WERE FOUND IN 38 FILES
61
+ + A TOTAL OF 362 ERRORS AND 2 WARNINGS WERE FOUND IN 38 FILES
54
62
----------------------------------------------------------------------
55
63
- PHPCBF CAN FIX 331 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
56
- + PHPCBF CAN FIX 299 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
64
+ + PHPCBF CAN FIX 305 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
57
65
----------------------------------------------------------------------
58
66
59
67
60
68
diff --git a/tests/fixed/example-class.php b/tests/fixed/example-class.php
61
- index 06efb7e..881afd3 100644
69
+ index 9df3d20..108bb03 100644
62
70
--- a/tests/fixed/example-class.php
63
71
+++ b/tests/fixed/example-class.php
64
- @@ -20 ,14 +20 ,12 @@ class Example implements \IteratorAggregate
72
+ @@ -18 ,14 +18 ,12 @@ class Example implements \IteratorAggregate
65
73
{
66
- private const VERSION = PHP_VERSION - (PHP_MINOR_VERSION * 100) - PHP_PATCH_VERSION;
74
+ private const VERSION = \ PHP_VERSION - (PHP_MINOR_VERSION * 100) - PHP_PATCH_VERSION;
67
75
68
76
- /** @var int|null */
69
77
- private $foo;
0 commit comments