Completed
Pull Request — master (#6)
by Tomáš
07:30
created
src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
     echo $moreBody;
17 17
     ?>
18 18
     <?php  echo 'hi'; ?>
19
-    <?php  echo 'hi';   ?>
19
+    <?php  echo 'hi'; ?>
20 20
     <?php echo 'hi;' ?>
21 21
     <?php echo 'hi'; echo 'hi;'; ?>
22
-    <?php  echo 'hi'; echo 'hi;';   ?>
22
+    <?php  echo 'hi'; echo 'hi;'; ?>
23 23
 
24 24
     <?php
25 25
     ?>
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
47 47
             return array(
48 48
                     2 => 1,
49
-                   );
49
+                    );
50 50
             break;
51 51
         default:
52 52
             return array();
Please login to merge, or discard this patch.
Switch Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,28 +28,28 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='DisallowSizeFunctionsInLoopsUnitTest.inc')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
32
-            return array(
33
-                    2  => 1,
34
-                    7  => 1,
35
-                    11 => 1,
36
-                    13 => 1,
37
-                    18 => 1,
38
-                    23 => 1,
39
-                    27 => 1,
40
-                    29 => 1,
41
-                    35 => 1,
42
-                    40 => 1,
43
-                    44 => 1,
44
-                    46 => 1,
45
-                   );
46
-            break;
47
-        case 'DisallowSizeFunctionsInLoopsUnitTest.js':
48
-            return array(1 => 1);
49
-            break;
50
-        default:
51
-            return array();
52
-            break;
31
+            case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
32
+                return array(
33
+                        2  => 1,
34
+                        7  => 1,
35
+                        11 => 1,
36
+                        13 => 1,
37
+                        18 => 1,
38
+                        23 => 1,
39
+                        27 => 1,
40
+                        29 => 1,
41
+                        35 => 1,
42
+                        40 => 1,
43
+                        44 => 1,
44
+                        46 => 1,
45
+                       );
46
+                break;
47
+            case 'DisallowSizeFunctionsInLoopsUnitTest.js':
48
+                return array(1 => 1);
49
+                break;
50
+            default:
51
+                return array();
52
+                break;
53 53
         }//end switch
54 54
 
55 55
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      *
43 43
      * @return array<int, int>
44 44
      */
45
-    public function getErrorList($testFile='DisallowSizeFunctionsInLoopsUnitTest.inc')
45
+    public function getErrorList($testFile = 'DisallowSizeFunctionsInLoopsUnitTest.inc')
46 46
     {
47 47
         switch ($testFile) {
48 48
         case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,13 +47,13 @@
 block discarded – undo
47 47
             return array(
48 48
                     4 => 1,
49 49
                     5 => 1,
50
-                   );
50
+                    );
51 51
         } else if (version_compare(PHP_VERSION, '5.4.0RC1') >= 0) {
52 52
             // Shorthand echo is always available from PHP 5.4.0 but needed the
53 53
             // short_open_tag ini var to be set for versions before this.
54 54
             return array(
55 55
                     4 => 1,
56
-                   );
56
+                    );
57 57
         }
58 58
 
59 59
         return array();
Please login to merge, or discard this patch.
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -58,24 +58,24 @@
 block discarded – undo
58 58
     public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
59 59
     {
60 60
         switch ($testFile) {
61
-        case 'CommentedOutCodeUnitTest.inc':
62
-            return array(
63
-                    6  => 1,
64
-                    8  => 1,
65
-                    15 => 1,
66
-                    19 => 1,
67
-                    87 => 1,
68
-                   );
69
-            break;
70
-        case 'CommentedOutCodeUnitTest.css':
71
-            return array(
72
-                    7  => 1,
73
-                    16 => 1,
74
-                   );
75
-            break;
76
-        default:
77
-            return array();
78
-            break;
61
+            case 'CommentedOutCodeUnitTest.inc':
62
+                return array(
63
+                        6  => 1,
64
+                        8  => 1,
65
+                        15 => 1,
66
+                        19 => 1,
67
+                        87 => 1,
68
+                       );
69
+                break;
70
+            case 'CommentedOutCodeUnitTest.css':
71
+                return array(
72
+                        7  => 1,
73
+                        16 => 1,
74
+                       );
75
+                break;
76
+            default:
77
+                return array();
78
+                break;
79 79
         }//end switch
80 80
 
81 81
     }//end getWarningList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      *
56 56
      * @return array<int, int>
57 57
      */
58
-    public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
58
+    public function getWarningList($testFile = 'CommentedOutCodeUnitTest.inc')
59 59
     {
60 60
         switch ($testFile) {
61 61
         case 'CommentedOutCodeUnitTest.inc':
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 $myArray['key']                = $value;
3 3
 $myArray[/* key start */'key'] = $value;
4 4
 $myArray[/* key start */'key'/* key end */] = $value;
5
-$myArray  [  'key'  ]            = $value;
5
+$myArray  ['key'] = $value;
6 6
 if ($array[($index + 1)] === true) {
7
-} else if ($array  [ ($index + 1) ] === null) {
7
+} else if ($array  [($index + 1)] === null) {
8 8
 }
9 9
 $array = [
10 10
     'foo' => 'bar',
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc 2 patches
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
     $c = [
10 10
             'a' => 1,
11
-         ];
11
+            ];
12 12
 }
13 13
 
14 14
 
@@ -17,58 +17,58 @@  discard block
 block discarded – undo
17 17
     public $good = [
18 18
                     'width'  => '',
19 19
                     'height' => '',
20
-                   ];
20
+                    ];
21 21
 
22 22
     private $_bad = [
23 23
                     'width' => '',
24 24
                     'height' => ''
25
-                     ];
25
+                        ];
26 26
 
27 27
 
28 28
     public function test()
29 29
     {
30 30
         $truck = [
31
-                 'width' => '',
32
-                  'height' => '',
33
-                 ];
31
+                    'width' => '',
32
+                    'height' => '',
33
+                    ];
34 34
 
35 35
         $plane = [
36 36
                 'width' => '',
37
-                  'height' => '',
38
-                 ];
37
+                    'height' => '',
38
+                    ];
39 39
 
40 40
         $car = [
41 41
                 'width' => '',
42 42
                 'height' => '',
43
-               ];
43
+                ];
44 44
 
45 45
         $bus = [
46 46
                 'width'  =>   '',
47 47
                 'height' => ''
48
-               ];
48
+                ];
49 49
 
50 50
         $train = [
51
-                   TRUE,
52
-                  FALSE,
53
-                  'aaa'
54
-                 ];
51
+                    TRUE,
52
+                    FALSE,
53
+                    'aaa'
54
+                    ];
55 55
 
56 56
         $inline = ['aaa', 'bbb', 'ccc'];
57 57
         $inline = ['aaa'];
58 58
         $inline = ['aaa'];
59 59
 
60 60
         $bigone = [
61
-                   'name' => 'bigone',
62
-                   'children'   => [
61
+                    'name' => 'bigone',
62
+                    'children'   => [
63 63
                                     '1a' => 'child',
64 64
                                     '11b' => 'child',
65 65
                                     '111c'      => 'child',
66 66
                                     'children'  => [
67 67
                                                     'child' => 'aaa',
68
-                                                   ],
69
-                                   ],
70
-                   'short_name' => 'big'
71
-                  ];
68
+                                                    ],
69
+                                    ],
70
+                    'short_name' => 'big'
71
+                    ];
72 72
     }
73 73
 
74 74
 }//end class
@@ -83,91 +83,91 @@  discard block
 block discarded – undo
83 83
 }
84 84
 
85 85
 $value = [
86
-          '1'=> TRUE,
87
-          FALSE,
88
-          '3' => 'aaa',];
86
+            '1'=> TRUE,
87
+            FALSE,
88
+            '3' => 'aaa',];
89 89
 
90 90
 $value = [
91
-          '1'=> TRUE,
92
-          FALSE,
93
-         ];
91
+            '1'=> TRUE,
92
+            FALSE,
93
+            ];
94 94
 
95 95
 $value = [
96
-          TRUE,
97
-          '1' => FALSE,
98
-         ];
96
+            TRUE,
97
+            '1' => FALSE,
98
+            ];
99 99
 
100 100
 $value = [1,
101
-          2 ,
102
-          3 ,
103
-         ];
101
+            2 ,
102
+            3 ,
103
+            ];
104 104
 
105 105
 $value = [1 => $one,
106
-          2 => $two ,
107
-          3 => $three ,
108
-         ];
106
+            2 => $two ,
107
+            3 => $three ,
108
+            ];
109 109
 
110 110
 $value = [
111
-          'tag'   => $tag,
112
-          'space' => $this->_getIndentation($tag, $tagElement),
113
-         ];
111
+            'tag'   => $tag,
112
+            'space' => $this->_getIndentation($tag, $tagElement),
113
+            ];
114 114
 
115 115
 $expected = [
116
-             [
117
-              '1' => 1,
118
-              '1' => 2,
119
-             ],
116
+                [
117
+                '1' => 1,
118
+                '1' => 2,
119
+                ],
120 120
             ];
121 121
 
122 122
 $expected = [
123
-             [
124
-              '1' => 1,
125
-              '1' => 2
126
-             ]
123
+                [
124
+                '1' => 1,
125
+                '1' => 2
126
+                ]
127 127
             ];
128 128
 
129 129
 // Space in second arg.
130 130
 $args = [
131
-         '"'.$this->id.'"',
132
-         (int) $hasSessions,
131
+            '"'.$this->id.'"',
132
+            (int) $hasSessions,
133 133
         ];
134 134
 
135 135
 // No errors.
136 136
 $paths = [
137
-          Init::ROOT_DIR.'/Systems'   => 'Systems',
138
-          Init::ROOT_DIR.'/Installer' => 'Systems',
139
-         ];
137
+            Init::ROOT_DIR.'/Systems'   => 'Systems',
138
+            Init::ROOT_DIR.'/Installer' => 'Systems',
139
+            ];
140 140
 
141 141
 $x = [
142
-     ];
142
+        ];
143 143
 
144 144
 $x = ['test'
145
-     ];
145
+        ];
146 146
 $x = ['test',
147
-     ];
147
+        ];
148 148
 $x = ['name' => 'test',
149
-     ];
149
+        ];
150 150
 
151 151
 $x = [
152
-      $x,
153
-     ];
152
+        $x,
153
+        ];
154 154
 
155 155
 $func = [
156
-         $x,
157
-         'get'.$x.'Replacement'
156
+            $x,
157
+            'get'.$x.'Replacement'
158 158
         ];
159 159
 
160 160
 $array = [
161
-          'input_one' => 'one',
162
-          'inputTwo'  => 'two',
163
-          'input_3'   => 3,
164
-         ];
161
+            'input_one' => 'one',
162
+            'inputTwo'  => 'two',
163
+            'input_3'   => 3,
164
+            ];
165 165
 
166 166
 $array = [
167
-          'input_one',
168
-          'inputTwo',
169
-          'input_3',
170
-         ];
167
+            'input_one',
168
+            'inputTwo',
169
+            'input_3',
170
+            ];
171 171
 
172 172
 // Malformed
173 173
 $foo = [1
@@ -176,32 +176,32 @@  discard block
 block discarded – undo
176 176
 $listItems[$aliasPath] = ['itemContent' => implode('<br/>', $aliases)];
177 177
 
178 178
 $listItems[$aliasPath] = [
179
-                          'itemContent' => implode('<br/>', $aliases)
180
-                         ];
179
+                            'itemContent' => implode('<br/>', $aliases)
180
+                            ];
181 181
 
182 182
 $x = 
183
-     [
184
-      $x,
185
-      $y,
186
-     ];
183
+        [
184
+        $x,
185
+        $y,
186
+        ];
187 187
 
188 188
 $x =
189 189
 [
190
-      $x,
191
-      $y,
192
-     ];
190
+        $x,
191
+        $y,
192
+        ];
193 193
 
194 194
 $x = [
195 195
 
196
-      $x,
197
-      $y,
198
-     ];
196
+        $x,
197
+        $y,
198
+        ];
199 199
 
200 200
 $test = [
201
-         'test' => TestFunction::blah(
202
-             $value1,
203
-             $value2
204
-         ),
201
+            'test' => TestFunction::blah(
202
+                $value1,
203
+                $value2
204
+            ),
205 205
         ];
206 206
 
207 207
 $c = ['a' => 1,];
@@ -216,71 +216,71 @@  discard block
 block discarded – undo
216 216
 }
217 217
 
218 218
 $array = [
219
-          'name'       => 'contactSubject',
220
-          'required'   => TRUE,
221
-          'validators' => [
222
-                           new \Zend\Validator\InArray(['haystack' => array_keys($aSubjects)]),
223
-                          ],
224
-         ];
219
+            'name'       => 'contactSubject',
220
+            'required'   => TRUE,
221
+            'validators' => [
222
+                            new \Zend\Validator\InArray(['haystack' => array_keys($aSubjects)]),
223
+                            ],
224
+            ];
225 225
 
226 226
 $var = [
227 227
         'ViewHelper',
228 228
         ['Foo'],
229 229
         'Errors',
230
-       ];
230
+        ];
231 231
 
232 232
 $data = [
233
-         'first',
234
-         'second',
235
-         'third',
236
-         // Add more here
233
+            'first',
234
+            'second',
235
+            'third',
236
+            // Add more here
237 237
         ];
238 238
 
239 239
 $data = [
240
-         'first',
241
-         'second',
242
-         //'third',
240
+            'first',
241
+            'second',
242
+            //'third',
243 243
         ];
244 244
 
245 245
 $data = [
246
-         'first',
247
-         'second'
248
-         //'third',
246
+            'first',
247
+            'second'
248
+            //'third',
249 249
         ];
250 250
 
251 251
 $foo = [
252 252
         $this->getViewName() . '.id'    => 'value',
253 253
         $this->getViewName() . '.title' => 'value',
254
-       ];
254
+        ];
255 255
 
256 256
 $foo = [
257 257
         $this->getViewName() . '.id',
258 258
         $this->getViewName() . '.title',
259
-       ];
259
+        ];
260 260
 
261 261
 $weightings = [
262
-               T_CLOSURE             => 100,
262
+                T_CLOSURE             => 100,
263 263
 
264
-               /*
264
+                /*
265 265
                    Conditions.
266 266
                */
267 267
 
268
-               T_WHILE               => 50,
268
+                T_WHILE               => 50,
269 269
 
270
-               /*
270
+                /*
271 271
                    Operators and arithmetic.
272 272
                */
273 273
 
274
-               T_BITWISE_AND         => 8,
274
+                T_BITWISE_AND         => 8,
275 275
 
276
-               T_BOOLEAN_AND         => 5,
276
+                T_BOOLEAN_AND         => 5,
277 277
 
278
-               /*
278
+                /*
279 279
                    Equality.
280 280
                */
281 281
 
282
-               T_IS_GREATER_OR_EQUAL => 5,
283
-              ];
282
+                T_IS_GREATER_OR_EQUAL => 5,
283
+                ];
284 284
 
285 285
 foreach ([
286 286
         'foo'    => 'bar',
@@ -291,25 +291,25 @@  discard block
 block discarded – undo
291 291
 $ids = [
292 292
         '1', // Foo.
293 293
         '13', // Bar.
294
-       ];
294
+        ];
295 295
 
296 296
 [
297
- 'key1' => function($bar) {
297
+    'key1' => function($bar) {
298 298
     return $bar;
299
- },
300
- 'key2' => function($foo) {
299
+    },
300
+    'key2' => function($foo) {
301 301
     return $foo;
302
- },
303
- 'key3' => function($bar) {
302
+    },
303
+    'key3' => function($bar) {
304 304
     return $bar;
305
- }
305
+    }
306 306
 ];
307 307
 
308 308
 [
309
- 'key1' => [
309
+    'key1' => [
310 310
             '1',
311 311
             '2',
312
-           ]
312
+            ]
313 313
 ];
314 314
 
315 315
 $var = [
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
         <div id="%s">
320 320
             %s
321 321
         </div>',
322
-       ];
322
+        ];
323 323
 
324 324
 function test() : array
325 325
 {
@@ -327,5 +327,5 @@  discard block
 block discarded – undo
327 327
 }
328 328
 
329 329
 $fields = [
330
-           'id'    => ['type' => 'INT'],
331
-           'value' => ['type' => 'VARCHAR']];
330
+            'id'    => ['type' => 'INT'],
331
+            'value' => ['type' => 'VARCHAR']];
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -73,19 +73,19 @@  discard block
 block discarded – undo
73 73
 
74 74
 }//end class
75 75
 
76
-$value = [ ];
77
-$value = [  ];
76
+$value = [];
77
+$value = [];
78 78
 $value = ['1'=>$one, '2'  =>  $two, '3'=> $three, '4' =>$four];
79 79
 $value = ['1'=>$one];
80 80
 
81
-if (in_array('1', ['1','2','3']) === TRUE) {
82
-    $value = in_array('1', ['1'  ,   '2',     '3','4']);
81
+if (in_array('1', ['1', '2', '3']) === TRUE) {
82
+    $value = in_array('1', ['1', '2', '3', '4']);
83 83
 }
84 84
 
85 85
 $value = [
86 86
           '1'=> TRUE,
87 87
           FALSE,
88
-          '3' => 'aaa',];
88
+          '3' => 'aaa', ];
89 89
 
90 90
 $value = [
91 91
           '1'=> TRUE,
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
          ];
99 99
 
100 100
 $value = [1,
101
-          2 ,
102
-          3 ,
101
+          2,
102
+          3,
103 103
          ];
104 104
 
105 105
 $value = [1 => $one,
106
-          2 => $two ,
107
-          3 => $three ,
106
+          2 => $two,
107
+          3 => $three,
108 108
          ];
109 109
 
110 110
 $value = [
@@ -204,11 +204,11 @@  discard block
 block discarded – undo
204 204
          ),
205 205
         ];
206 206
 
207
-$c = ['a' => 1,];
208
-$c->{$var}[ ] = 2;
207
+$c = ['a' => 1, ];
208
+$c->{$var}[] = 2;
209 209
 
210
-$foo = ['[',']',':',"\n","\r"];
211
-$bar = ['&#91;','&#93;','&#58;','&#10;','&#13;'];
210
+$foo = ['[', ']', ':', "\n", "\r"];
211
+$bar = ['&#91;', '&#93;', '&#58;', '&#10;', '&#13;'];
212 212
 
213 213
 function foo()
214 214
 {
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
         ];
250 250
 
251 251
 $foo = [
252
-        $this->getViewName() . '.id'    => 'value',
253
-        $this->getViewName() . '.title' => 'value',
252
+        $this->getViewName().'.id'    => 'value',
253
+        $this->getViewName().'.title' => 'value',
254 254
        ];
255 255
 
256 256
 $foo = [
257
-        $this->getViewName() . '.id',
258
-        $this->getViewName() . '.title',
257
+        $this->getViewName().'.id',
258
+        $this->getViewName().'.title',
259 259
        ];
260 260
 
261 261
 $weightings = [
Please login to merge, or discard this patch.
src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,13 +47,13 @@
 block discarded – undo
47 47
             return array(
48 48
                     4 => 1,
49 49
                     5 => 1,
50
-                   );
50
+                    );
51 51
         } else if (version_compare(PHP_VERSION, '5.4.0RC1') >= 0) {
52 52
             // Shorthand echo is always available from PHP 5.4.0 but needed the
53 53
             // short_open_tag ini var to be set for versions before this.
54 54
             return array(
55 55
                     4 => 1,
56
-                   );
56
+                    );
57 57
         }
58 58
 
59 59
         return array();
Please login to merge, or discard this patch.
Switch Indentation   +131 added lines, -131 removed lines patch added patch discarded remove patch
@@ -28,137 +28,137 @@
 block discarded – undo
28 28
     public function getErrorList($testFile='')
29 29
     {
30 30
         switch ($testFile) {
31
-        case 'ArrayDeclarationUnitTest.1.inc':
32
-            return array(
33
-                    7   => 2,
34
-                    9   => 2,
35
-                    22  => 1,
36
-                    23  => 1,
37
-                    24  => 1,
38
-                    25  => 1,
39
-                    31  => 1,
40
-                    35  => 1,
41
-                    36  => 1,
42
-                    41  => 1,
43
-                    46  => 1,
44
-                    47  => 1,
45
-                    50  => 1,
46
-                    51  => 1,
47
-                    53  => 1,
48
-                    56  => 1,
49
-                    58  => 1,
50
-                    61  => 1,
51
-                    62  => 1,
52
-                    63  => 1,
53
-                    64  => 1,
54
-                    65  => 1,
55
-                    66  => 3,
56
-                    70  => 1,
57
-                    76  => 2,
58
-                    77  => 1,
59
-                    78  => 7,
60
-                    79  => 2,
61
-                    81  => 2,
62
-                    82  => 4,
63
-                    87  => 1,
64
-                    88  => 1,
65
-                    92  => 1,
66
-                    97  => 1,
67
-                    100 => 1,
68
-                    101 => 1,
69
-                    102 => 1,
70
-                    105 => 1,
71
-                    106 => 1,
72
-                    107 => 1,
73
-                    125 => 1,
74
-                    126 => 1,
75
-                    141 => 1,
76
-                    144 => 1,
77
-                    146 => 1,
78
-                    148 => 1,
79
-                    151 => 1,
80
-                    157 => 1,
81
-                    174 => 3,
82
-                    179 => 1,
83
-                    182 => 1,
84
-                    188 => 1,
85
-                    207 => 1,
86
-                    212 => 1,
87
-                    214 => 1,
88
-                    218 => 2,
89
-                    219 => 2,
90
-                    223 => 1,
91
-                    255 => 1,
92
-                    294 => 1,
93
-                    295 => 1,
94
-                    296 => 1,
95
-                    311 => 1,
96
-                    317 => 1,
97
-                    339 => 2,
98
-                   );
99
-        case 'ArrayDeclarationUnitTest.2.inc':
100
-            return array(
101
-                    9   => 1,
102
-                    23  => 1,
103
-                    24  => 1,
104
-                    25  => 1,
105
-                    31  => 1,
106
-                    36  => 1,
107
-                    41  => 1,
108
-                    46  => 1,
109
-                    47  => 1,
110
-                    51  => 1,
111
-                    53  => 1,
112
-                    56  => 1,
113
-                    61  => 1,
114
-                    63  => 1,
115
-                    64  => 1,
116
-                    65  => 1,
117
-                    66  => 2,
118
-                    70  => 1,
119
-                    76  => 1,
120
-                    77  => 1,
121
-                    78  => 7,
122
-                    79  => 2,
123
-                    81  => 2,
124
-                    82  => 4,
125
-                    87  => 1,
126
-                    88  => 1,
127
-                    92  => 1,
128
-                    97  => 1,
129
-                    100 => 1,
130
-                    101 => 1,
131
-                    102 => 1,
132
-                    105 => 1,
133
-                    106 => 1,
134
-                    107 => 1,
135
-                    125 => 1,
136
-                    126 => 1,
137
-                    141 => 1,
138
-                    144 => 1,
139
-                    146 => 1,
140
-                    148 => 1,
141
-                    151 => 1,
142
-                    157 => 1,
143
-                    174 => 3,
144
-                    179 => 1,
145
-                    190 => 1,
146
-                    191 => 1,
147
-                    192 => 1,
148
-                    207 => 1,
149
-                    210 => 1,
150
-                    211 => 1,
151
-                    215 => 1,
152
-                    247 => 1,
153
-                    286 => 1,
154
-                    287 => 1,
155
-                    288 => 1,
156
-                    303 => 1,
157
-                    309 => 1,
158
-                    331 => 2,
159
-                   );
160
-        default:
161
-            return array();
31
+            case 'ArrayDeclarationUnitTest.1.inc':
32
+                return array(
33
+                        7   => 2,
34
+                        9   => 2,
35
+                        22  => 1,
36
+                        23  => 1,
37
+                        24  => 1,
38
+                        25  => 1,
39
+                        31  => 1,
40
+                        35  => 1,
41
+                        36  => 1,
42
+                        41  => 1,
43
+                        46  => 1,
44
+                        47  => 1,
45
+                        50  => 1,
46
+                        51  => 1,
47
+                        53  => 1,
48
+                        56  => 1,
49
+                        58  => 1,
50
+                        61  => 1,
51
+                        62  => 1,
52
+                        63  => 1,
53
+                        64  => 1,
54
+                        65  => 1,
55
+                        66  => 3,
56
+                        70  => 1,
57
+                        76  => 2,
58
+                        77  => 1,
59
+                        78  => 7,
60
+                        79  => 2,
61
+                        81  => 2,
62
+                        82  => 4,
63
+                        87  => 1,
64
+                        88  => 1,
65
+                        92  => 1,
66
+                        97  => 1,
67
+                        100 => 1,
68
+                        101 => 1,
69
+                        102 => 1,
70
+                        105 => 1,
71
+                        106 => 1,
72
+                        107 => 1,
73
+                        125 => 1,
74
+                        126 => 1,
75
+                        141 => 1,
76
+                        144 => 1,
77
+                        146 => 1,
78
+                        148 => 1,
79
+                        151 => 1,
80
+                        157 => 1,
81
+                        174 => 3,
82
+                        179 => 1,
83
+                        182 => 1,
84
+                        188 => 1,
85
+                        207 => 1,
86
+                        212 => 1,
87
+                        214 => 1,
88
+                        218 => 2,
89
+                        219 => 2,
90
+                        223 => 1,
91
+                        255 => 1,
92
+                        294 => 1,
93
+                        295 => 1,
94
+                        296 => 1,
95
+                        311 => 1,
96
+                        317 => 1,
97
+                        339 => 2,
98
+                       );
99
+            case 'ArrayDeclarationUnitTest.2.inc':
100
+                return array(
101
+                        9   => 1,
102
+                        23  => 1,
103
+                        24  => 1,
104
+                        25  => 1,
105
+                        31  => 1,
106
+                        36  => 1,
107
+                        41  => 1,
108
+                        46  => 1,
109
+                        47  => 1,
110
+                        51  => 1,
111
+                        53  => 1,
112
+                        56  => 1,
113
+                        61  => 1,
114
+                        63  => 1,
115
+                        64  => 1,
116
+                        65  => 1,
117
+                        66  => 2,
118
+                        70  => 1,
119
+                        76  => 1,
120
+                        77  => 1,
121
+                        78  => 7,
122
+                        79  => 2,
123
+                        81  => 2,
124
+                        82  => 4,
125
+                        87  => 1,
126
+                        88  => 1,
127
+                        92  => 1,
128
+                        97  => 1,
129
+                        100 => 1,
130
+                        101 => 1,
131
+                        102 => 1,
132
+                        105 => 1,
133
+                        106 => 1,
134
+                        107 => 1,
135
+                        125 => 1,
136
+                        126 => 1,
137
+                        141 => 1,
138
+                        144 => 1,
139
+                        146 => 1,
140
+                        148 => 1,
141
+                        151 => 1,
142
+                        157 => 1,
143
+                        174 => 3,
144
+                        179 => 1,
145
+                        190 => 1,
146
+                        191 => 1,
147
+                        192 => 1,
148
+                        207 => 1,
149
+                        210 => 1,
150
+                        211 => 1,
151
+                        215 => 1,
152
+                        247 => 1,
153
+                        286 => 1,
154
+                        287 => 1,
155
+                        288 => 1,
156
+                        303 => 1,
157
+                        309 => 1,
158
+                        331 => 2,
159
+                       );
160
+            default:
161
+                return array();
162 162
         }//end switch
163 163
 
164 164
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='')
43
+    public function getErrorList($testFile = '')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
Please login to merge, or discard this patch.