@@ -59,7 +59,7 @@ |
||
59 | 59 | 34 => 1, |
60 | 60 | 37 => 1, |
61 | 61 | 41 => 1, |
62 | - ); |
|
62 | + ); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return null; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * |
45 | 45 | * @return array(int => int) |
46 | 46 | */ |
47 | - protected function getErrorList($testFile='') |
|
47 | + protected function getErrorList($testFile = '') |
|
48 | 48 | { |
49 | 49 | switch ($testFile) { |
50 | 50 | case 'PropertyCommentUnitTest.pass.inc': |
@@ -60,7 +60,7 @@ |
||
60 | 60 | 9 => 1, |
61 | 61 | 10 => 1, |
62 | 62 | 11 => 1, |
63 | - ); |
|
63 | + ); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | return null; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * |
45 | 45 | * @return array(int => int) |
46 | 46 | */ |
47 | - protected function getErrorList($testFile='') |
|
47 | + protected function getErrorList($testFile = '') |
|
48 | 48 | { |
49 | 49 | switch ($testFile) { |
50 | 50 | case 'VariableInDoubleQuotedStringUnitTest.pass.inc': |
@@ -57,20 +57,20 @@ discard block |
||
57 | 57 | 8 => 1, |
58 | 58 | 9 => 1, |
59 | 59 | 12 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | // Take care, more than one fix will be applied. |
62 | 62 | case 'AlphabeticalUseStatementsUnitTest.fail.2.inc': |
63 | 63 | return array( |
64 | 64 | 6 => 1, |
65 | 65 | 8 => 1, |
66 | - ); |
|
66 | + ); |
|
67 | 67 | case 'AlphabeticalUseStatementsUnitTest.fail.3.inc': |
68 | 68 | return array( |
69 | 69 | 7 => 1, |
70 | 70 | 8 => 1, |
71 | 71 | 10 => 1, |
72 | 72 | 15 => 1, |
73 | - ); |
|
73 | + ); |
|
74 | 74 | case 'AlphabeticalUseStatementsUnitTest.fail.4.inc': |
75 | 75 | return array( |
76 | 76 | 4 => 1, |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 17 => 1, |
80 | 80 | 20 => 1, |
81 | 81 | 21 => 1, |
82 | - ); |
|
82 | + ); |
|
83 | 83 | }//end switch |
84 | 84 | |
85 | 85 | return null; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * |
46 | 46 | * @return array(int => int) |
47 | 47 | */ |
48 | - protected function getErrorList($testFile='') |
|
48 | + protected function getErrorList($testFile = '') |
|
49 | 49 | { |
50 | 50 | switch ($testFile) { |
51 | 51 | case 'AlphabeticalUseStatementsUnitTest.pass.inc': |
@@ -88,12 +88,12 @@ discard block |
||
88 | 88 | 46 => 1, |
89 | 89 | 52 => 1, |
90 | 90 | 56 => 1, |
91 | - ); |
|
91 | + ); |
|
92 | 92 | case 'UnnecessaryNamespaceUsageUnitTest.fail.2.inc': |
93 | 93 | return array( |
94 | 94 | 10 => 1, |
95 | 95 | 11 => 1, |
96 | - ); |
|
96 | + ); |
|
97 | 97 | case 'UnnecessaryNamespaceUsageUnitTest.fail.3.inc': |
98 | 98 | return array( |
99 | 99 | 15 => 1, |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | 22 => 1, |
104 | 104 | 23 => 1, |
105 | 105 | 25 => 3, |
106 | - ); |
|
106 | + ); |
|
107 | 107 | }//end switch |
108 | 108 | |
109 | 109 | return null; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @return array(int => int) |
48 | 48 | */ |
49 | - protected function getErrorList($testFile='') |
|
49 | + protected function getErrorList($testFile = '') |
|
50 | 50 | { |
51 | 51 | return array(); |
52 | 52 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @return array(int => int) |
65 | 65 | */ |
66 | - protected function getWarningList($testFile='') |
|
66 | + protected function getWarningList($testFile = '') |
|
67 | 67 | { |
68 | 68 | switch ($testFile) { |
69 | 69 | case 'UnnecessaryNamespaceUsageUnitTest.pass.1.inc': |
@@ -100,10 +100,10 @@ discard block |
||
100 | 100 | ); |
101 | 101 | |
102 | 102 | $a = [ |
103 | - 0 => [ 1 => 'O', 0 => 'O'], |
|
104 | - 1 => [ 1 => 'O', 0 => 'I'], |
|
105 | - 2 => [ 1 => 'I', 0 => 'O'], |
|
106 | - 3 => [ 1 => 'I', 0 => 'I'], |
|
103 | + 0 => [1 => 'O', 0 => 'O'], |
|
104 | + 1 => [1 => 'O', 0 => 'I'], |
|
105 | + 2 => [1 => 'I', 0 => 'O'], |
|
106 | + 3 => [1 => 'I', 0 => 'I'], |
|
107 | 107 | ]; |
108 | 108 | |
109 | 109 | foreach ($x as $k => $v) { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | $a = [ |
114 | - function () { |
|
114 | + function() { |
|
115 | 115 | $b = [ |
116 | 116 | 'one' => 1, |
117 | 117 | 'four' => 4, |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | foreach ($bar as $key => $value) { |
126 | 126 | } |
127 | 127 | }, |
128 | - function () { |
|
128 | + function() { |
|
129 | 129 | }, |
130 | 130 | 'one' => 1, |
131 | 131 | 2, |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | => 'fail', |
137 | 137 | ]; |
138 | 138 | |
139 | -$values = [ |
|
139 | +$values = [ |
|
140 | 140 | 'Test:1' => [ |
141 | 141 | 'object_id' => 1, |
142 | 142 | 'object_class' => 'Test', |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | use A\B\C as CC; |
8 | 8 | use A\B\B as BB; |
9 | - use A\B\A as AA; |
|
9 | + use A\B\A as AA; |
|
10 | 10 | |
11 | 11 | use Z; |
12 | 12 | use X; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | 13 => 1, |
60 | 60 | 15 => 1, |
61 | 61 | 16 => 2, |
62 | - ); |
|
62 | + ); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return null; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * |
46 | 46 | * @return array(int => int) |
47 | 47 | */ |
48 | - protected function getErrorList($testFile='') |
|
48 | + protected function getErrorList($testFile = '') |
|
49 | 49 | { |
50 | 50 | switch ($testFile) { |
51 | 51 | case 'UseArrayShortTagUnitTest.pass.inc': |
@@ -10,8 +10,7 @@ |
||
10 | 10 | array(4, 5, 6), |
11 | 11 | ); |
12 | 12 | |
13 | -array |
|
14 | -( |
|
13 | +array( |
|
15 | 14 | array/* will be deleted */( ), |
16 | - array (1), array (3) |
|
15 | + array(1), array(3) |
|
17 | 16 | ); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * @param array $a |
16 | 16 | */ |
17 | -function foo (array $a) |
|
17 | +function foo(array $a) |
|
18 | 18 | { |
19 | 19 | //do stuff |
20 | 20 | } |
21 | 21 | \ No newline at end of file |