@@ -219,10 +219,10 @@ public function test_generic_whitespace_scopeindent() {
219
219
// - line => array of contents for message / source problem matching.
220
220
// - line => string of contents for message / source problem matching (only 1).
221
221
$ this ->set_errors (array (
222
- 6 => 'indented incorrectly; expected at least 4 spaces, found 2 @Source: Generic.WhiteSpace.ScopeIndent.Incorrect ' ,
223
- 18 => 'indented incorrectly; expected at least 4 spaces, found 2 @Source: Generic.WhiteSpace.ScopeIndent.Incorrect ' ,
224
- 43 => 'expected at least 8 spaces ' ,
225
- 50 => ' IncorrectExact ' ));
222
+ 7 => 'indented incorrectly; expected at least 4 spaces, found 2 @Source: Generic.WhiteSpace.ScopeIndent.Incorrect ' ,
223
+ 19 => 'indented incorrectly; expected at least 4 spaces, found 2 @Source: Generic.WhiteSpace.ScopeIndent.Incorrect ' ,
224
+ 44 => 'expected at least 8 spaces ' ,
225
+ ));
226
226
$ this ->set_warnings (array ());
227
227
228
228
// Let's do all the hard work!
@@ -492,50 +492,49 @@ public function test_squiz_operator_spacing() {
492
492
// - line => array of contents for message / source problem matching.
493
493
// - line => string of contents for message / source problem matching (only 1).
494
494
$ this ->set_errors (array (
495
- 5 => 0 ,
496
- 6 => 'Expected 1 space before ' ,
497
- 7 => 'Expected 1 space after ' ,
498
- 8 => array ('Expected 1 space before ' , 'Expected 1 space after ' ),
499
- 9 => 0 ,
500
- 10 => 'Expected 1 space after "=>"; 3 found ' ,
501
- 11 => 0 ,
495
+ 6 => 0 ,
496
+ 7 => 'Expected 1 space before ' ,
497
+ 8 => 'Expected 1 space after ' ,
498
+ 9 => array ('Expected 1 space before ' , 'Expected 1 space after ' ),
499
+ 10 => 0 ,
500
+ 11 => 'Expected 1 space after "=>"; 3 found ' ,
502
501
12 => 0 ,
503
- 13 => ' Expected 1 space before ' ,
504
- 14 => 'Expected 1 space after ' ,
505
- 15 => array ( 'Expected 1 space before ' , ' Expected 1 space after ') ,
506
- 16 => 0 ,
507
- 17 => ' Expected 1 space after "="; 2 found ' ,
508
- 18 => 0 ,
502
+ 13 => 0 ,
503
+ 14 => 'Expected 1 space before ' ,
504
+ 15 => 'Expected 1 space after ' ,
505
+ 16 => array ( ' Expected 1 space before ' , ' Expected 1 space after ' ) ,
506
+ 17 => 0 ,
507
+ 18 => ' Expected 1 space after "="; 2 found ' ,
509
508
19 => 0 ,
510
509
20 => 0 ,
511
- 21 => ' Expected 1 space before ' ,
512
- 22 => 'Expected 1 space after ' ,
513
- 23 => array ( 'Expected 1 space before ' , ' Expected 1 space after ') ,
514
- 24 => 0 ,
515
- 25 => ' Expected 1 space after "+"; 2 found ' ,
516
- 26 => 'Expected 1 space before "+"; 2 found ' ,
517
- 27 => 0 ,
518
- 28 => ' Expected 1 space before ' ,
519
- 29 => 'Expected 1 space after ' ,
520
- 30 => array ( 'Expected 1 space before ' , ' Expected 1 space after ') ,
521
- 31 => 0 ,
522
- 32 => ' Expected 1 space after "-"; 2 found ' ,
523
- 33 => 'Expected 1 space before "-"; 2 found ' ,
524
- 34 => 0 ,
525
- 35 => ' Expected 1 space before ' ,
526
- 36 => 'Expected 1 space after ' ,
527
- 37 => array ( 'Expected 1 space before ' , ' Expected 1 space after ') ,
528
- 38 => 0 ,
529
- 39 => ' Expected 1 space after "*"; 2 found ' ,
530
- 40 => 'Expected 1 space before "*"; 2 found ' ,
531
- 41 => 0 ,
532
- 42 => ' Expected 1 space before ' ,
533
- 43 => 'Expected 1 space after ' ,
534
- 44 => array ( 'Expected 1 space before ' , ' Expected 1 space after ') ,
535
- 45 => 0 ,
536
- 46 => ' Expected 1 space after "/"; 2 found ' ,
537
- 47 => 'Expected 1 space before "/"; 2 found ' ,
538
- 48 => 0 ,
510
+ 21 => 0 ,
511
+ 22 => 'Expected 1 space before ' ,
512
+ 23 => 'Expected 1 space after ' ,
513
+ 24 => array ( ' Expected 1 space before ' , ' Expected 1 space after ' ) ,
514
+ 25 => 0 ,
515
+ 26 => 'Expected 1 space after "+"; 2 found ' ,
516
+ 27 => ' Expected 1 space before "+"; 2 found ' ,
517
+ 28 => 0 ,
518
+ 29 => 'Expected 1 space before ' ,
519
+ 30 => 'Expected 1 space after ' ,
520
+ 31 => array ( ' Expected 1 space before ' , ' Expected 1 space after ' ) ,
521
+ 32 => 0 ,
522
+ 33 => 'Expected 1 space after "-"; 2 found ' ,
523
+ 34 => ' Expected 1 space before "-"; 2 found ' ,
524
+ 35 => 0 ,
525
+ 36 => 'Expected 1 space before ' ,
526
+ 37 => 'Expected 1 space after ' ,
527
+ 38 => array ( ' Expected 1 space before ' , ' Expected 1 space after ' ) ,
528
+ 39 => 0 ,
529
+ 40 => 'Expected 1 space after "*"; 2 found ' ,
530
+ 41 => ' Expected 1 space before "*"; 2 found ' ,
531
+ 42 => 0 ,
532
+ 43 => 'Expected 1 space before ' ,
533
+ 44 => 'Expected 1 space after ' ,
534
+ 45 => array ( ' Expected 1 space before ' , ' Expected 1 space after ' ) ,
535
+ 46 => 0 ,
536
+ 47 => 'Expected 1 space after "/"; 2 found ' ,
537
+ 48 => ' Expected 1 space before "/"; 2 found ' ,
539
538
49 => 0 ,
540
539
50 => 0 ,
541
540
51 => 0 ,
@@ -549,7 +548,8 @@ public function test_squiz_operator_spacing() {
549
548
59 => 0 ,
550
549
60 => 0 ,
551
550
61 => 0 ,
552
- 62 => 0
551
+ 62 => 0 ,
552
+ 63 => 0
553
553
));
554
554
$ this ->set_warnings (array ());
555
555
0 commit comments