@@ -28,15 +28,15 @@ |
||
28 | 28 | public function getErrorList($testFile='DisallowInlineIfUnitTest.inc') |
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | - case 'DisallowInlineIfUnitTest.inc': |
|
32 | - return array(8 => 1); |
|
33 | - break; |
|
34 | - case 'DisallowInlineIfUnitTest.js': |
|
35 | - return array(1 => 1); |
|
36 | - break; |
|
37 | - default: |
|
38 | - return array(); |
|
39 | - break; |
|
31 | + case 'DisallowInlineIfUnitTest.inc': |
|
32 | + return array(8 => 1); |
|
33 | + break; |
|
34 | + case 'DisallowInlineIfUnitTest.js': |
|
35 | + return array(1 => 1); |
|
36 | + break; |
|
37 | + default: |
|
38 | + return array(); |
|
39 | + break; |
|
40 | 40 | }//end switch |
41 | 41 | |
42 | 42 | }//end getErrorList() |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @return array<int, int> |
42 | 42 | */ |
43 | - public function getErrorList($testFile='DisallowInlineIfUnitTest.inc') |
|
43 | + public function getErrorList($testFile = 'DisallowInlineIfUnitTest.inc') |
|
44 | 44 | { |
45 | 45 | switch ($testFile) { |
46 | 46 | case 'DisallowInlineIfUnitTest.inc': |
@@ -52,7 +52,7 @@ |
||
52 | 52 | do { |
53 | 53 | echo $a->count; |
54 | 54 | $a->count--; |
55 | -} while($a->count); |
|
55 | +} while ($a->count); |
|
56 | 56 | |
57 | 57 | for ($i = 0; $i < $a->count; $i++) {} |
58 | 58 | ?> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $var = myFunction( |
15 | 15 | 'one', |
16 | 16 | 'two' |
17 | - ); |
|
17 | + ); |
|
18 | 18 | |
19 | 19 | for ($i = ($stackPtr + 1); $i < $endStatement; $i++) { |
20 | 20 | } |
@@ -23,17 +23,17 @@ discard block |
||
23 | 23 | $var = myFunction(!$var); |
24 | 24 | |
25 | 25 | $depthAdv = array( |
26 | - $this, |
|
27 | - !$directLinks, |
|
28 | - FALSE, |
|
26 | + $this, |
|
27 | + !$directLinks, |
|
28 | + FALSE, |
|
29 | 29 | ); |
30 | 30 | |
31 | 31 | $var = myFunction( |
32 | 32 | $var, |
33 | 33 | array( |
34 | - $this, |
|
35 | - !$directLinks, |
|
36 | - FALSE, |
|
34 | + $this, |
|
35 | + !$directLinks, |
|
36 | + FALSE, |
|
37 | 37 | ); |
38 | 38 | ); |
39 | 39 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 48 => 1, |
58 | 58 | 70 => 1, |
59 | 59 | 71 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | |
62 | 62 | }//end getErrorList() |
63 | 63 |
@@ -16,10 +16,10 @@ |
||
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 | ?> |
@@ -46,7 +46,7 @@ |
||
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(); |
@@ -28,28 +28,28 @@ |
||
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() |
@@ -42,7 +42,7 @@ |
||
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': |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 48 => 1, |
58 | 58 | 70 => 1, |
59 | 59 | 71 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | |
62 | 62 | }//end getErrorList() |
63 | 63 |
@@ -47,13 +47,13 @@ |
||
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(); |
@@ -58,24 +58,24 @@ |
||
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() |
@@ -55,7 +55,7 @@ |
||
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': |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 48 => 1, |
58 | 58 | 70 => 1, |
59 | 59 | 71 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | |
62 | 62 | }//end getErrorList() |
63 | 63 |