@@ -15,34 +15,34 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - /** |
|
19 | - * Returns the lines where errors should occur. |
|
20 | - * |
|
21 | - * The key of the array should represent the line number and the value |
|
22 | - * should represent the number of errors that should occur on that line. |
|
23 | - * |
|
24 | - * @return array<int, int> |
|
25 | - */ |
|
26 | - public function getErrorList() |
|
27 | - { |
|
28 | - return [1 => 1]; |
|
29 | - |
|
30 | - }//end getErrorList() |
|
31 | - |
|
32 | - |
|
33 | - /** |
|
34 | - * Returns the lines where warnings should occur. |
|
35 | - * |
|
36 | - * The key of the array should represent the line number and the value |
|
37 | - * should represent the number of warnings that should occur on that line. |
|
38 | - * |
|
39 | - * @return array<int, int> |
|
40 | - */ |
|
41 | - public function getWarningList() |
|
42 | - { |
|
43 | - return []; |
|
44 | - |
|
45 | - }//end getWarningList() |
|
18 | + /** |
|
19 | + * Returns the lines where errors should occur. |
|
20 | + * |
|
21 | + * The key of the array should represent the line number and the value |
|
22 | + * should represent the number of errors that should occur on that line. |
|
23 | + * |
|
24 | + * @return array<int, int> |
|
25 | + */ |
|
26 | + public function getErrorList() |
|
27 | + { |
|
28 | + return [1 => 1]; |
|
29 | + |
|
30 | + }//end getErrorList() |
|
31 | + |
|
32 | + |
|
33 | + /** |
|
34 | + * Returns the lines where warnings should occur. |
|
35 | + * |
|
36 | + * The key of the array should represent the line number and the value |
|
37 | + * should represent the number of warnings that should occur on that line. |
|
38 | + * |
|
39 | + * @return array<int, int> |
|
40 | + */ |
|
41 | + public function getWarningList() |
|
42 | + { |
|
43 | + return []; |
|
44 | + |
|
45 | + }//end getWarningList() |
|
46 | 46 | |
47 | 47 | |
48 | 48 | }//end class |
@@ -15,39 +15,39 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - /** |
|
19 | - * Returns the lines where errors should occur. |
|
20 | - * |
|
21 | - * The key of the array should represent the line number and the value |
|
22 | - * should represent the number of errors that should occur on that line. |
|
23 | - * |
|
24 | - * @return array<int, int> |
|
25 | - */ |
|
26 | - public function getErrorList() |
|
27 | - { |
|
28 | - return [ |
|
29 | - 6 => 1, |
|
30 | - 10 => 1, |
|
31 | - 14 => 1, |
|
32 | - 18 => 1, |
|
33 | - ]; |
|
34 | - |
|
35 | - }//end getErrorList() |
|
36 | - |
|
37 | - |
|
38 | - /** |
|
39 | - * Returns the lines where warnings should occur. |
|
40 | - * |
|
41 | - * The key of the array should represent the line number and the value |
|
42 | - * should represent the number of warnings that should occur on that line. |
|
43 | - * |
|
44 | - * @return array<int, int> |
|
45 | - */ |
|
46 | - public function getWarningList() |
|
47 | - { |
|
48 | - return []; |
|
49 | - |
|
50 | - }//end getWarningList() |
|
18 | + /** |
|
19 | + * Returns the lines where errors should occur. |
|
20 | + * |
|
21 | + * The key of the array should represent the line number and the value |
|
22 | + * should represent the number of errors that should occur on that line. |
|
23 | + * |
|
24 | + * @return array<int, int> |
|
25 | + */ |
|
26 | + public function getErrorList() |
|
27 | + { |
|
28 | + return [ |
|
29 | + 6 => 1, |
|
30 | + 10 => 1, |
|
31 | + 14 => 1, |
|
32 | + 18 => 1, |
|
33 | + ]; |
|
34 | + |
|
35 | + }//end getErrorList() |
|
36 | + |
|
37 | + |
|
38 | + /** |
|
39 | + * Returns the lines where warnings should occur. |
|
40 | + * |
|
41 | + * The key of the array should represent the line number and the value |
|
42 | + * should represent the number of warnings that should occur on that line. |
|
43 | + * |
|
44 | + * @return array<int, int> |
|
45 | + */ |
|
46 | + public function getWarningList() |
|
47 | + { |
|
48 | + return []; |
|
49 | + |
|
50 | + }//end getWarningList() |
|
51 | 51 | |
52 | 52 | |
53 | 53 | }//end class |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='') |
|
28 | + public function getErrorList($testFile = '') |
|
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | 31 | case 'EndFileNoNewlineUnitTest.1.inc': |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @return array<int, int> |
67 | 67 | */ |
68 | - public function getWarningList($testFile='') |
|
68 | + public function getWarningList($testFile = '') |
|
69 | 69 | { |
70 | 70 | return []; |
71 | 71 |
@@ -15,53 +15,53 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - /** |
|
19 | - * Returns the lines where errors should occur. |
|
20 | - * |
|
21 | - * The key of the array should represent the line number and the value |
|
22 | - * should represent the number of errors that should occur on that line. |
|
23 | - * |
|
24 | - * @param string $testFile The name of the file being tested. |
|
25 | - * |
|
26 | - * @return array<int, int> |
|
27 | - */ |
|
28 | - public function getErrorList($testFile='') |
|
29 | - { |
|
30 | - switch ($testFile) { |
|
31 | - case 'EndFileNoNewlineUnitTest.1.inc': |
|
32 | - case 'EndFileNoNewlineUnitTest.1.css': |
|
33 | - case 'EndFileNoNewlineUnitTest.1.js': |
|
34 | - case 'EndFileNoNewlineUnitTest.2.inc': |
|
35 | - return [3 => 1]; |
|
36 | - case 'EndFileNoNewlineUnitTest.2.css': |
|
37 | - case 'EndFileNoNewlineUnitTest.2.js': |
|
38 | - case 'EndFileNoNewlineUnitTest.6.inc': |
|
39 | - return [2 => 1]; |
|
40 | - case 'EndFileNoNewlineUnitTest.8.inc': |
|
41 | - case 'EndFileNoNewlineUnitTest.9.inc': |
|
42 | - return [1 => 1]; |
|
43 | - default: |
|
44 | - return []; |
|
45 | - }//end switch |
|
18 | + /** |
|
19 | + * Returns the lines where errors should occur. |
|
20 | + * |
|
21 | + * The key of the array should represent the line number and the value |
|
22 | + * should represent the number of errors that should occur on that line. |
|
23 | + * |
|
24 | + * @param string $testFile The name of the file being tested. |
|
25 | + * |
|
26 | + * @return array<int, int> |
|
27 | + */ |
|
28 | + public function getErrorList($testFile='') |
|
29 | + { |
|
30 | + switch ($testFile) { |
|
31 | + case 'EndFileNoNewlineUnitTest.1.inc': |
|
32 | + case 'EndFileNoNewlineUnitTest.1.css': |
|
33 | + case 'EndFileNoNewlineUnitTest.1.js': |
|
34 | + case 'EndFileNoNewlineUnitTest.2.inc': |
|
35 | + return [3 => 1]; |
|
36 | + case 'EndFileNoNewlineUnitTest.2.css': |
|
37 | + case 'EndFileNoNewlineUnitTest.2.js': |
|
38 | + case 'EndFileNoNewlineUnitTest.6.inc': |
|
39 | + return [2 => 1]; |
|
40 | + case 'EndFileNoNewlineUnitTest.8.inc': |
|
41 | + case 'EndFileNoNewlineUnitTest.9.inc': |
|
42 | + return [1 => 1]; |
|
43 | + default: |
|
44 | + return []; |
|
45 | + }//end switch |
|
46 | 46 | |
47 | - }//end getErrorList() |
|
47 | + }//end getErrorList() |
|
48 | 48 | |
49 | 49 | |
50 | - /** |
|
51 | - * Returns the lines where warnings should occur. |
|
52 | - * |
|
53 | - * The key of the array should represent the line number and the value |
|
54 | - * should represent the number of warnings that should occur on that line. |
|
55 | - * |
|
56 | - * @param string $testFile The name of the file being tested. |
|
57 | - * |
|
58 | - * @return array<int, int> |
|
59 | - */ |
|
60 | - public function getWarningList($testFile='') |
|
61 | - { |
|
62 | - return []; |
|
50 | + /** |
|
51 | + * Returns the lines where warnings should occur. |
|
52 | + * |
|
53 | + * The key of the array should represent the line number and the value |
|
54 | + * should represent the number of warnings that should occur on that line. |
|
55 | + * |
|
56 | + * @param string $testFile The name of the file being tested. |
|
57 | + * |
|
58 | + * @return array<int, int> |
|
59 | + */ |
|
60 | + public function getWarningList($testFile='') |
|
61 | + { |
|
62 | + return []; |
|
63 | 63 | |
64 | - }//end getWarningList() |
|
64 | + }//end getWarningList() |
|
65 | 65 | |
66 | 66 | |
67 | 67 | }//end class |
@@ -28,20 +28,20 @@ |
||
28 | 28 | public function getErrorList($testFile='') |
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | - case 'EndFileNoNewlineUnitTest.1.inc': |
|
32 | - case 'EndFileNoNewlineUnitTest.1.css': |
|
33 | - case 'EndFileNoNewlineUnitTest.1.js': |
|
34 | - case 'EndFileNoNewlineUnitTest.2.inc': |
|
35 | - return [3 => 1]; |
|
36 | - case 'EndFileNoNewlineUnitTest.2.css': |
|
37 | - case 'EndFileNoNewlineUnitTest.2.js': |
|
38 | - case 'EndFileNoNewlineUnitTest.6.inc': |
|
39 | - return [2 => 1]; |
|
40 | - case 'EndFileNoNewlineUnitTest.8.inc': |
|
41 | - case 'EndFileNoNewlineUnitTest.9.inc': |
|
42 | - return [1 => 1]; |
|
43 | - default: |
|
44 | - return []; |
|
31 | + case 'EndFileNoNewlineUnitTest.1.inc': |
|
32 | + case 'EndFileNoNewlineUnitTest.1.css': |
|
33 | + case 'EndFileNoNewlineUnitTest.1.js': |
|
34 | + case 'EndFileNoNewlineUnitTest.2.inc': |
|
35 | + return [3 => 1]; |
|
36 | + case 'EndFileNoNewlineUnitTest.2.css': |
|
37 | + case 'EndFileNoNewlineUnitTest.2.js': |
|
38 | + case 'EndFileNoNewlineUnitTest.6.inc': |
|
39 | + return [2 => 1]; |
|
40 | + case 'EndFileNoNewlineUnitTest.8.inc': |
|
41 | + case 'EndFileNoNewlineUnitTest.9.inc': |
|
42 | + return [1 => 1]; |
|
43 | + default: |
|
44 | + return []; |
|
45 | 45 | }//end switch |
46 | 46 | |
47 | 47 | }//end getErrorList() |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='') |
|
28 | + public function getErrorList($testFile = '') |
|
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | 31 | case 'InlineHTMLUnitTest.3.inc': |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return array<int, int> |
54 | 54 | */ |
55 | - public function getWarningList($testFile='') |
|
55 | + public function getWarningList($testFile = '') |
|
56 | 56 | { |
57 | 57 | return []; |
58 | 58 |
@@ -15,51 +15,51 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - /** |
|
19 | - * Returns the lines where errors should occur. |
|
20 | - * |
|
21 | - * The key of the array should represent the line number and the value |
|
22 | - * should represent the number of errors that should occur on that line. |
|
23 | - * |
|
24 | - * @param string $testFile The name of the file being tested. |
|
25 | - * |
|
26 | - * @return array<int, int> |
|
27 | - */ |
|
28 | - public function getErrorList($testFile='') |
|
29 | - { |
|
30 | - switch ($testFile) { |
|
31 | - case 'InlineHTMLUnitTest.3.inc': |
|
32 | - return [4 => 1]; |
|
33 | - break; |
|
34 | - case 'InlineHTMLUnitTest.4.inc': |
|
35 | - return [1 => 1]; |
|
36 | - break; |
|
37 | - case 'InlineHTMLUnitTest.7.inc': |
|
38 | - return [1 => 1]; |
|
39 | - break; |
|
40 | - default: |
|
41 | - return []; |
|
42 | - break; |
|
43 | - }//end switch |
|
18 | + /** |
|
19 | + * Returns the lines where errors should occur. |
|
20 | + * |
|
21 | + * The key of the array should represent the line number and the value |
|
22 | + * should represent the number of errors that should occur on that line. |
|
23 | + * |
|
24 | + * @param string $testFile The name of the file being tested. |
|
25 | + * |
|
26 | + * @return array<int, int> |
|
27 | + */ |
|
28 | + public function getErrorList($testFile='') |
|
29 | + { |
|
30 | + switch ($testFile) { |
|
31 | + case 'InlineHTMLUnitTest.3.inc': |
|
32 | + return [4 => 1]; |
|
33 | + break; |
|
34 | + case 'InlineHTMLUnitTest.4.inc': |
|
35 | + return [1 => 1]; |
|
36 | + break; |
|
37 | + case 'InlineHTMLUnitTest.7.inc': |
|
38 | + return [1 => 1]; |
|
39 | + break; |
|
40 | + default: |
|
41 | + return []; |
|
42 | + break; |
|
43 | + }//end switch |
|
44 | 44 | |
45 | - }//end getErrorList() |
|
45 | + }//end getErrorList() |
|
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * Returns the lines where warnings should occur. |
|
50 | - * |
|
51 | - * The key of the array should represent the line number and the value |
|
52 | - * should represent the number of warnings that should occur on that line. |
|
53 | - * |
|
54 | - * @param string $testFile The name of the file being tested. |
|
55 | - * |
|
56 | - * @return array<int, int> |
|
57 | - */ |
|
58 | - public function getWarningList($testFile='') |
|
59 | - { |
|
60 | - return []; |
|
48 | + /** |
|
49 | + * Returns the lines where warnings should occur. |
|
50 | + * |
|
51 | + * The key of the array should represent the line number and the value |
|
52 | + * should represent the number of warnings that should occur on that line. |
|
53 | + * |
|
54 | + * @param string $testFile The name of the file being tested. |
|
55 | + * |
|
56 | + * @return array<int, int> |
|
57 | + */ |
|
58 | + public function getWarningList($testFile='') |
|
59 | + { |
|
60 | + return []; |
|
61 | 61 | |
62 | - }//end getWarningList() |
|
62 | + }//end getWarningList() |
|
63 | 63 | |
64 | 64 | |
65 | 65 | }//end class |
@@ -28,18 +28,18 @@ |
||
28 | 28 | public function getErrorList($testFile='') |
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | - case 'InlineHTMLUnitTest.3.inc': |
|
32 | - return [4 => 1]; |
|
33 | - break; |
|
34 | - case 'InlineHTMLUnitTest.4.inc': |
|
35 | - return [1 => 1]; |
|
36 | - break; |
|
37 | - case 'InlineHTMLUnitTest.7.inc': |
|
38 | - return [1 => 1]; |
|
39 | - break; |
|
40 | - default: |
|
41 | - return []; |
|
42 | - break; |
|
31 | + case 'InlineHTMLUnitTest.3.inc': |
|
32 | + return [4 => 1]; |
|
33 | + break; |
|
34 | + case 'InlineHTMLUnitTest.4.inc': |
|
35 | + return [1 => 1]; |
|
36 | + break; |
|
37 | + case 'InlineHTMLUnitTest.7.inc': |
|
38 | + return [1 => 1]; |
|
39 | + break; |
|
40 | + default: |
|
41 | + return []; |
|
42 | + break; |
|
43 | 43 | }//end switch |
44 | 44 | |
45 | 45 | }//end getErrorList() |
@@ -15,41 +15,41 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - /** |
|
19 | - * Returns the lines where errors should occur. |
|
20 | - * |
|
21 | - * The key of the array should represent the line number and the value |
|
22 | - * should represent the number of errors that should occur on that line. |
|
23 | - * |
|
24 | - * @return array<int, int> |
|
25 | - */ |
|
26 | - public function getErrorList() |
|
27 | - { |
|
28 | - return [ |
|
29 | - 9 => 1, |
|
30 | - 12 => 1, |
|
31 | - 15 => 1, |
|
32 | - 18 => 2, |
|
33 | - 23 => 1, |
|
34 | - 30 => 1, |
|
35 | - ]; |
|
36 | - |
|
37 | - }//end getErrorList() |
|
38 | - |
|
39 | - |
|
40 | - /** |
|
41 | - * Returns the lines where warnings should occur. |
|
42 | - * |
|
43 | - * The key of the array should represent the line number and the value |
|
44 | - * should represent the number of warnings that should occur on that line. |
|
45 | - * |
|
46 | - * @return array<int, int> |
|
47 | - */ |
|
48 | - public function getWarningList() |
|
49 | - { |
|
50 | - return []; |
|
51 | - |
|
52 | - }//end getWarningList() |
|
18 | + /** |
|
19 | + * Returns the lines where errors should occur. |
|
20 | + * |
|
21 | + * The key of the array should represent the line number and the value |
|
22 | + * should represent the number of errors that should occur on that line. |
|
23 | + * |
|
24 | + * @return array<int, int> |
|
25 | + */ |
|
26 | + public function getErrorList() |
|
27 | + { |
|
28 | + return [ |
|
29 | + 9 => 1, |
|
30 | + 12 => 1, |
|
31 | + 15 => 1, |
|
32 | + 18 => 2, |
|
33 | + 23 => 1, |
|
34 | + 30 => 1, |
|
35 | + ]; |
|
36 | + |
|
37 | + }//end getErrorList() |
|
38 | + |
|
39 | + |
|
40 | + /** |
|
41 | + * Returns the lines where warnings should occur. |
|
42 | + * |
|
43 | + * The key of the array should represent the line number and the value |
|
44 | + * should represent the number of warnings that should occur on that line. |
|
45 | + * |
|
46 | + * @return array<int, int> |
|
47 | + */ |
|
48 | + public function getWarningList() |
|
49 | + { |
|
50 | + return []; |
|
51 | + |
|
52 | + }//end getWarningList() |
|
53 | 53 | |
54 | 54 | |
55 | 55 | }//end class |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class myclass extends yourclass implements someint { |
3 | - function myfunc($var) { |
|
4 | - echo $var; |
|
5 | - } |
|
3 | + function myfunc($var) { |
|
4 | + echo $var; |
|
5 | + } |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | $myvar = true; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | myclass::myfunc(&$myvar); |
16 | 16 | myclass::myfunc($myvar); |
17 | 17 | |
18 | -while(testfunc($var1, &$var2, $var3, &$var4) === false) { |
|
18 | +while (testfunc($var1, &$var2, $var3, &$var4) === false) { |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | sprintf("0%o", 0777 & $p); |
@@ -25,15 +25,15 @@ discard block |
||
25 | 25 | if (is_array($foo = &$this->bar())) { |
26 | 26 | } |
27 | 27 | |
28 | -Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] ); |
|
28 | +Hooks::run('SecondaryDataUpdates', [$title, $old, $recursive, $parserOutput, &$updates]); |
|
29 | 29 | |
30 | 30 | $foo = Bar(&$fooBar); |
31 | 31 | |
32 | -myfunc($myvar&$myvar); |
|
33 | -myfunc($myvar[0]&$myvar); |
|
32 | +myfunc($myvar & $myvar); |
|
33 | +myfunc($myvar[0] & $myvar); |
|
34 | 34 | |
35 | -myfunc(myclass::MY_CONST&$myvar); |
|
36 | -myfunc(MY_CONST&$myvar); |
|
35 | +myfunc(myclass::MY_CONST & $myvar); |
|
36 | +myfunc(MY_CONST & $myvar); |
|
37 | 37 | |
38 | -efg( true == &$b ); |
|
39 | -efg( true === &$b ); |
|
38 | +efg(true == &$b); |
|
39 | +efg(true === &$b); |
@@ -15,47 +15,47 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - /** |
|
19 | - * Returns the lines where errors should occur. |
|
20 | - * |
|
21 | - * The key of the array should represent the line number and the value |
|
22 | - * should represent the number of errors that should occur on that line. |
|
23 | - * |
|
24 | - * @param string $testFile The name of the file being tested. |
|
25 | - * |
|
26 | - * @return array<int, int> |
|
27 | - */ |
|
28 | - public function getErrorList($testFile='TodoUnitTest.inc') |
|
29 | - { |
|
30 | - return []; |
|
31 | - |
|
32 | - }//end getErrorList() |
|
33 | - |
|
34 | - |
|
35 | - /** |
|
36 | - * Returns the lines where warnings should occur. |
|
37 | - * |
|
38 | - * The key of the array should represent the line number and the value |
|
39 | - * should represent the number of warnings that should occur on that line. |
|
40 | - * |
|
41 | - * @param string $testFile The name of the file being tested. |
|
42 | - * |
|
43 | - * @return array<int, int> |
|
44 | - */ |
|
45 | - public function getWarningList($testFile='TodoUnitTest.inc') |
|
46 | - { |
|
47 | - return [ |
|
48 | - 3 => 1, |
|
49 | - 4 => 1, |
|
50 | - 7 => 1, |
|
51 | - 10 => 1, |
|
52 | - 13 => 1, |
|
53 | - 16 => 1, |
|
54 | - 18 => 1, |
|
55 | - 21 => 1, |
|
56 | - ]; |
|
57 | - |
|
58 | - }//end getWarningList() |
|
18 | + /** |
|
19 | + * Returns the lines where errors should occur. |
|
20 | + * |
|
21 | + * The key of the array should represent the line number and the value |
|
22 | + * should represent the number of errors that should occur on that line. |
|
23 | + * |
|
24 | + * @param string $testFile The name of the file being tested. |
|
25 | + * |
|
26 | + * @return array<int, int> |
|
27 | + */ |
|
28 | + public function getErrorList($testFile='TodoUnitTest.inc') |
|
29 | + { |
|
30 | + return []; |
|
31 | + |
|
32 | + }//end getErrorList() |
|
33 | + |
|
34 | + |
|
35 | + /** |
|
36 | + * Returns the lines where warnings should occur. |
|
37 | + * |
|
38 | + * The key of the array should represent the line number and the value |
|
39 | + * should represent the number of warnings that should occur on that line. |
|
40 | + * |
|
41 | + * @param string $testFile The name of the file being tested. |
|
42 | + * |
|
43 | + * @return array<int, int> |
|
44 | + */ |
|
45 | + public function getWarningList($testFile='TodoUnitTest.inc') |
|
46 | + { |
|
47 | + return [ |
|
48 | + 3 => 1, |
|
49 | + 4 => 1, |
|
50 | + 7 => 1, |
|
51 | + 10 => 1, |
|
52 | + 13 => 1, |
|
53 | + 16 => 1, |
|
54 | + 18 => 1, |
|
55 | + 21 => 1, |
|
56 | + ]; |
|
57 | + |
|
58 | + }//end getWarningList() |
|
59 | 59 | |
60 | 60 | |
61 | 61 | }//end class |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='TodoUnitTest.inc') |
|
28 | + public function getErrorList($testFile = 'TodoUnitTest.inc') |
|
29 | 29 | { |
30 | 30 | return []; |
31 | 31 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @return array<int, int> |
44 | 44 | */ |
45 | - public function getWarningList($testFile='TodoUnitTest.inc') |
|
45 | + public function getWarningList($testFile = 'TodoUnitTest.inc') |
|
46 | 46 | { |
47 | 47 | return [ |
48 | 48 | 3 => 1, |
@@ -16,47 +16,47 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - /** |
|
20 | - * Returns the lines where errors should occur. |
|
21 | - * |
|
22 | - * The key of the array should represent the line number and the value |
|
23 | - * should represent the number of errors that should occur on that line. |
|
24 | - * |
|
25 | - * @param string $testFile The name of the file being tested. |
|
26 | - * |
|
27 | - * @return array<int, int> |
|
28 | - */ |
|
29 | - public function getErrorList($testFile='FixmeUnitTest.inc') |
|
30 | - { |
|
31 | - return [ |
|
32 | - 3 => 1, |
|
33 | - 4 => 1, |
|
34 | - 7 => 1, |
|
35 | - 10 => 1, |
|
36 | - 13 => 1, |
|
37 | - 16 => 1, |
|
38 | - 18 => 1, |
|
39 | - 21 => 1, |
|
40 | - ]; |
|
41 | - |
|
42 | - }//end getErrorList() |
|
43 | - |
|
44 | - |
|
45 | - /** |
|
46 | - * Returns the lines where warnings should occur. |
|
47 | - * |
|
48 | - * The key of the array should represent the line number and the value |
|
49 | - * should represent the number of warnings that should occur on that line. |
|
50 | - * |
|
51 | - * @param string $testFile The name of the file being tested. |
|
52 | - * |
|
53 | - * @return array<int, int> |
|
54 | - */ |
|
55 | - public function getWarningList($testFile='FixmeUnitTest.inc') |
|
56 | - { |
|
57 | - return []; |
|
58 | - |
|
59 | - }//end getWarningList() |
|
19 | + /** |
|
20 | + * Returns the lines where errors should occur. |
|
21 | + * |
|
22 | + * The key of the array should represent the line number and the value |
|
23 | + * should represent the number of errors that should occur on that line. |
|
24 | + * |
|
25 | + * @param string $testFile The name of the file being tested. |
|
26 | + * |
|
27 | + * @return array<int, int> |
|
28 | + */ |
|
29 | + public function getErrorList($testFile='FixmeUnitTest.inc') |
|
30 | + { |
|
31 | + return [ |
|
32 | + 3 => 1, |
|
33 | + 4 => 1, |
|
34 | + 7 => 1, |
|
35 | + 10 => 1, |
|
36 | + 13 => 1, |
|
37 | + 16 => 1, |
|
38 | + 18 => 1, |
|
39 | + 21 => 1, |
|
40 | + ]; |
|
41 | + |
|
42 | + }//end getErrorList() |
|
43 | + |
|
44 | + |
|
45 | + /** |
|
46 | + * Returns the lines where warnings should occur. |
|
47 | + * |
|
48 | + * The key of the array should represent the line number and the value |
|
49 | + * should represent the number of warnings that should occur on that line. |
|
50 | + * |
|
51 | + * @param string $testFile The name of the file being tested. |
|
52 | + * |
|
53 | + * @return array<int, int> |
|
54 | + */ |
|
55 | + public function getWarningList($testFile='FixmeUnitTest.inc') |
|
56 | + { |
|
57 | + return []; |
|
58 | + |
|
59 | + }//end getWarningList() |
|
60 | 60 | |
61 | 61 | |
62 | 62 | }//end class |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @return array<int, int> |
28 | 28 | */ |
29 | - public function getErrorList($testFile='FixmeUnitTest.inc') |
|
29 | + public function getErrorList($testFile = 'FixmeUnitTest.inc') |
|
30 | 30 | { |
31 | 31 | return [ |
32 | 32 | 3 => 1, |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return array<int, int> |
54 | 54 | */ |
55 | - public function getWarningList($testFile='FixmeUnitTest.inc') |
|
55 | + public function getWarningList($testFile = 'FixmeUnitTest.inc') |
|
56 | 56 | { |
57 | 57 | return []; |
58 | 58 |
@@ -2,101 +2,101 @@ |
||
2 | 2 | |
3 | 3 | function nestingOne() |
4 | 4 | { |
5 | - if ($condition) { |
|
6 | - echo 'hi'; |
|
7 | - } |
|
5 | + if ($condition) { |
|
6 | + echo 'hi'; |
|
7 | + } |
|
8 | 8 | } |
9 | 9 | |
10 | 10 | function nestingFive() |
11 | 11 | { |
12 | - if ($condition) { |
|
13 | - echo 'hi'; |
|
14 | - switch ($condition) |
|
15 | - { |
|
16 | - case '1': |
|
17 | - if ($condition === '1') { |
|
18 | - if ($cond) { |
|
19 | - echo 'hi'; |
|
20 | - } |
|
21 | - } |
|
22 | - break; |
|
23 | - } |
|
24 | - } |
|
12 | + if ($condition) { |
|
13 | + echo 'hi'; |
|
14 | + switch ($condition) |
|
15 | + { |
|
16 | + case '1': |
|
17 | + if ($condition === '1') { |
|
18 | + if ($cond) { |
|
19 | + echo 'hi'; |
|
20 | + } |
|
21 | + } |
|
22 | + break; |
|
23 | + } |
|
24 | + } |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | function nestingSix() |
28 | 28 | { |
29 | - if ($condition) { |
|
30 | - echo 'hi'; |
|
31 | - switch ($condition) |
|
32 | - { |
|
33 | - case '1': |
|
34 | - if ($condition === '1') { |
|
35 | - if ($cond) { |
|
36 | - foreach ($conds as $cond) { |
|
37 | - echo 'hi'; |
|
38 | - } |
|
39 | - } |
|
40 | - } |
|
41 | - break; |
|
42 | - } |
|
43 | - } |
|
29 | + if ($condition) { |
|
30 | + echo 'hi'; |
|
31 | + switch ($condition) |
|
32 | + { |
|
33 | + case '1': |
|
34 | + if ($condition === '1') { |
|
35 | + if ($cond) { |
|
36 | + foreach ($conds as $cond) { |
|
37 | + echo 'hi'; |
|
38 | + } |
|
39 | + } |
|
40 | + } |
|
41 | + break; |
|
42 | + } |
|
43 | + } |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | function nestingTen() |
47 | 47 | { |
48 | - if ($condition) { |
|
49 | - echo 'hi'; |
|
50 | - switch ($condition) |
|
51 | - { |
|
52 | - case '1': |
|
53 | - if ($condition === '1') { |
|
54 | - if ($cond) { |
|
55 | - switch ($cond) { |
|
56 | - case '1': |
|
57 | - if ($cond === '1') { |
|
58 | - foreach ($conds as $cond) { |
|
59 | - if ($cond === 'hi') { |
|
60 | - echo 'hi'; |
|
61 | - } |
|
62 | - } |
|
63 | - } |
|
64 | - break; |
|
65 | - } |
|
66 | - } |
|
67 | - } |
|
68 | - break; |
|
69 | - } |
|
70 | - } |
|
48 | + if ($condition) { |
|
49 | + echo 'hi'; |
|
50 | + switch ($condition) |
|
51 | + { |
|
52 | + case '1': |
|
53 | + if ($condition === '1') { |
|
54 | + if ($cond) { |
|
55 | + switch ($cond) { |
|
56 | + case '1': |
|
57 | + if ($cond === '1') { |
|
58 | + foreach ($conds as $cond) { |
|
59 | + if ($cond === 'hi') { |
|
60 | + echo 'hi'; |
|
61 | + } |
|
62 | + } |
|
63 | + } |
|
64 | + break; |
|
65 | + } |
|
66 | + } |
|
67 | + } |
|
68 | + break; |
|
69 | + } |
|
70 | + } |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | function nestingEleven() |
74 | 74 | { |
75 | - if ($condition) { |
|
76 | - echo 'hi'; |
|
77 | - switch ($condition) |
|
78 | - { |
|
79 | - case '1': |
|
80 | - if ($condition === '1') { |
|
81 | - if ($cond) { |
|
82 | - switch ($cond) { |
|
83 | - case '1': |
|
84 | - if ($cond === '1') { |
|
85 | - foreach ($conds as $cond) { |
|
86 | - if ($cond === 'hi') { |
|
87 | - if ($cond !== 'bye') { |
|
88 | - echo 'hi'; |
|
89 | - } |
|
90 | - } |
|
91 | - } |
|
92 | - } |
|
93 | - break; |
|
94 | - } |
|
95 | - } |
|
96 | - } |
|
97 | - break; |
|
98 | - } |
|
99 | - } |
|
75 | + if ($condition) { |
|
76 | + echo 'hi'; |
|
77 | + switch ($condition) |
|
78 | + { |
|
79 | + case '1': |
|
80 | + if ($condition === '1') { |
|
81 | + if ($cond) { |
|
82 | + switch ($cond) { |
|
83 | + case '1': |
|
84 | + if ($cond === '1') { |
|
85 | + foreach ($conds as $cond) { |
|
86 | + if ($cond === 'hi') { |
|
87 | + if ($cond !== 'bye') { |
|
88 | + echo 'hi'; |
|
89 | + } |
|
90 | + } |
|
91 | + } |
|
92 | + } |
|
93 | + break; |
|
94 | + } |
|
95 | + } |
|
96 | + } |
|
97 | + break; |
|
98 | + } |
|
99 | + } |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | ?> |
@@ -1,18 +1,18 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -function nestingOne() |
|
4 | -{ |
|
5 | - if ($condition) { |
|
6 | - echo 'hi'; |
|
7 | - } |
|
3 | + function nestingOne() |
|
4 | + { |
|
5 | + if ($condition) { |
|
6 | + echo 'hi'; |
|
7 | + } |
|
8 | 8 | } |
9 | 9 | |
10 | -function nestingFive() |
|
11 | -{ |
|
12 | - if ($condition) { |
|
13 | - echo 'hi'; |
|
14 | - switch ($condition) |
|
15 | - { |
|
10 | + function nestingFive() |
|
11 | + { |
|
12 | + if ($condition) { |
|
13 | + echo 'hi'; |
|
14 | + switch ($condition) |
|
15 | + { |
|
16 | 16 | case '1': |
17 | 17 | if ($condition === '1') { |
18 | 18 | if ($cond) { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | } |
22 | 22 | break; |
23 | - } |
|
23 | + } |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 |