@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='DisallowInlineIfUnitTest.inc') |
|
28 | + public function getErrorList($testFile = 'DisallowInlineIfUnitTest.inc') |
|
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | 31 | case 'DisallowInlineIfUnitTest.inc': |
@@ -15,49 +15,49 @@ |
||
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='DisallowInlineIfUnitTest.inc') |
|
29 | - { |
|
30 | - switch ($testFile) { |
|
31 | - case 'DisallowInlineIfUnitTest.inc': |
|
32 | - return [ |
|
33 | - 8 => 1, |
|
34 | - 18 => 1, |
|
35 | - ]; |
|
36 | - break; |
|
37 | - case 'DisallowInlineIfUnitTest.js': |
|
38 | - return [1 => 1]; |
|
39 | - break; |
|
40 | - default: |
|
41 | - return []; |
|
42 | - break; |
|
43 | - }//end switch |
|
44 | - |
|
45 | - }//end getErrorList() |
|
46 | - |
|
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 | - * @return array<int, int> |
|
55 | - */ |
|
56 | - public function getWarningList() |
|
57 | - { |
|
58 | - return []; |
|
59 | - |
|
60 | - }//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='DisallowInlineIfUnitTest.inc') |
|
29 | + { |
|
30 | + switch ($testFile) { |
|
31 | + case 'DisallowInlineIfUnitTest.inc': |
|
32 | + return [ |
|
33 | + 8 => 1, |
|
34 | + 18 => 1, |
|
35 | + ]; |
|
36 | + break; |
|
37 | + case 'DisallowInlineIfUnitTest.js': |
|
38 | + return [1 => 1]; |
|
39 | + break; |
|
40 | + default: |
|
41 | + return []; |
|
42 | + break; |
|
43 | + }//end switch |
|
44 | + |
|
45 | + }//end getErrorList() |
|
46 | + |
|
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 | + * @return array<int, int> |
|
55 | + */ |
|
56 | + public function getWarningList() |
|
57 | + { |
|
58 | + return []; |
|
59 | + |
|
60 | + }//end getWarningList() |
|
61 | 61 | |
62 | 62 | |
63 | 63 | }//end class |
@@ -28,18 +28,18 @@ |
||
28 | 28 | public function getErrorList($testFile='DisallowInlineIfUnitTest.inc') |
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | - case 'DisallowInlineIfUnitTest.inc': |
|
32 | - return [ |
|
33 | - 8 => 1, |
|
34 | - 18 => 1, |
|
35 | - ]; |
|
36 | - break; |
|
37 | - case 'DisallowInlineIfUnitTest.js': |
|
38 | - return [1 => 1]; |
|
39 | - break; |
|
40 | - default: |
|
41 | - return []; |
|
42 | - break; |
|
31 | + case 'DisallowInlineIfUnitTest.inc': |
|
32 | + return [ |
|
33 | + 8 => 1, |
|
34 | + 18 => 1, |
|
35 | + ]; |
|
36 | + break; |
|
37 | + case 'DisallowInlineIfUnitTest.js': |
|
38 | + return [1 => 1]; |
|
39 | + break; |
|
40 | + default: |
|
41 | + return []; |
|
42 | + break; |
|
43 | 43 | }//end switch |
44 | 44 | |
45 | 45 | }//end getErrorList() |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @return array<int, int> |
42 | 42 | */ |
43 | - public function getWarningList($testFile='') |
|
43 | + public function getWarningList($testFile = '') |
|
44 | 44 | { |
45 | 45 | switch ($testFile) { |
46 | 46 | case 'NonExecutableCodeUnitTest.1.inc': |
@@ -15,83 +15,83 @@ |
||
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 []; |
|
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 | 29 | |
30 | - }//end getErrorList() |
|
30 | + }//end getErrorList() |
|
31 | 31 | |
32 | 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 | - * @param string $testFile The name of the file being tested. |
|
40 | - * |
|
41 | - * @return array<int, int> |
|
42 | - */ |
|
43 | - public function getWarningList($testFile='') |
|
44 | - { |
|
45 | - switch ($testFile) { |
|
46 | - case 'NonExecutableCodeUnitTest.1.inc': |
|
47 | - return [ |
|
48 | - 5 => 1, |
|
49 | - 11 => 1, |
|
50 | - 17 => 1, |
|
51 | - 18 => 1, |
|
52 | - 19 => 2, |
|
53 | - 28 => 1, |
|
54 | - 32 => 1, |
|
55 | - 33 => 2, |
|
56 | - 34 => 2, |
|
57 | - 42 => 1, |
|
58 | - 45 => 1, |
|
59 | - 54 => 1, |
|
60 | - 58 => 1, |
|
61 | - 73 => 1, |
|
62 | - 83 => 1, |
|
63 | - 95 => 1, |
|
64 | - 105 => 1, |
|
65 | - 123 => 1, |
|
66 | - 147 => 1, |
|
67 | - 150 => 1, |
|
68 | - 153 => 1, |
|
69 | - 166 => 1, |
|
70 | - 180 => 1, |
|
71 | - 232 => 1, |
|
72 | - 240 => 1, |
|
73 | - 246 => 1, |
|
74 | - 252 => 1, |
|
75 | - 253 => 1, |
|
76 | - 254 => 2, |
|
77 | - ]; |
|
78 | - break; |
|
79 | - case 'NonExecutableCodeUnitTest.2.inc': |
|
80 | - return [ |
|
81 | - 7 => 1, |
|
82 | - 8 => 1, |
|
83 | - 9 => 1, |
|
84 | - 10 => 2, |
|
85 | - 14 => 1, |
|
86 | - 54 => 2, |
|
87 | - ]; |
|
88 | - break; |
|
89 | - default: |
|
90 | - return []; |
|
91 | - break; |
|
92 | - }//end switch |
|
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 | + * @param string $testFile The name of the file being tested. |
|
40 | + * |
|
41 | + * @return array<int, int> |
|
42 | + */ |
|
43 | + public function getWarningList($testFile='') |
|
44 | + { |
|
45 | + switch ($testFile) { |
|
46 | + case 'NonExecutableCodeUnitTest.1.inc': |
|
47 | + return [ |
|
48 | + 5 => 1, |
|
49 | + 11 => 1, |
|
50 | + 17 => 1, |
|
51 | + 18 => 1, |
|
52 | + 19 => 2, |
|
53 | + 28 => 1, |
|
54 | + 32 => 1, |
|
55 | + 33 => 2, |
|
56 | + 34 => 2, |
|
57 | + 42 => 1, |
|
58 | + 45 => 1, |
|
59 | + 54 => 1, |
|
60 | + 58 => 1, |
|
61 | + 73 => 1, |
|
62 | + 83 => 1, |
|
63 | + 95 => 1, |
|
64 | + 105 => 1, |
|
65 | + 123 => 1, |
|
66 | + 147 => 1, |
|
67 | + 150 => 1, |
|
68 | + 153 => 1, |
|
69 | + 166 => 1, |
|
70 | + 180 => 1, |
|
71 | + 232 => 1, |
|
72 | + 240 => 1, |
|
73 | + 246 => 1, |
|
74 | + 252 => 1, |
|
75 | + 253 => 1, |
|
76 | + 254 => 2, |
|
77 | + ]; |
|
78 | + break; |
|
79 | + case 'NonExecutableCodeUnitTest.2.inc': |
|
80 | + return [ |
|
81 | + 7 => 1, |
|
82 | + 8 => 1, |
|
83 | + 9 => 1, |
|
84 | + 10 => 2, |
|
85 | + 14 => 1, |
|
86 | + 54 => 2, |
|
87 | + ]; |
|
88 | + break; |
|
89 | + default: |
|
90 | + return []; |
|
91 | + break; |
|
92 | + }//end switch |
|
93 | 93 | |
94 | - }//end getWarningList() |
|
94 | + }//end getWarningList() |
|
95 | 95 | |
96 | 96 | |
97 | 97 | }//end class |
@@ -43,52 +43,52 @@ |
||
43 | 43 | public function getWarningList($testFile='') |
44 | 44 | { |
45 | 45 | switch ($testFile) { |
46 | - case 'NonExecutableCodeUnitTest.1.inc': |
|
47 | - return [ |
|
48 | - 5 => 1, |
|
49 | - 11 => 1, |
|
50 | - 17 => 1, |
|
51 | - 18 => 1, |
|
52 | - 19 => 2, |
|
53 | - 28 => 1, |
|
54 | - 32 => 1, |
|
55 | - 33 => 2, |
|
56 | - 34 => 2, |
|
57 | - 42 => 1, |
|
58 | - 45 => 1, |
|
59 | - 54 => 1, |
|
60 | - 58 => 1, |
|
61 | - 73 => 1, |
|
62 | - 83 => 1, |
|
63 | - 95 => 1, |
|
64 | - 105 => 1, |
|
65 | - 123 => 1, |
|
66 | - 147 => 1, |
|
67 | - 150 => 1, |
|
68 | - 153 => 1, |
|
69 | - 166 => 1, |
|
70 | - 180 => 1, |
|
71 | - 232 => 1, |
|
72 | - 240 => 1, |
|
73 | - 246 => 1, |
|
74 | - 252 => 1, |
|
75 | - 253 => 1, |
|
76 | - 254 => 2, |
|
77 | - ]; |
|
78 | - break; |
|
79 | - case 'NonExecutableCodeUnitTest.2.inc': |
|
80 | - return [ |
|
81 | - 7 => 1, |
|
82 | - 8 => 1, |
|
83 | - 9 => 1, |
|
84 | - 10 => 2, |
|
85 | - 14 => 1, |
|
86 | - 54 => 2, |
|
87 | - ]; |
|
88 | - break; |
|
89 | - default: |
|
90 | - return []; |
|
91 | - break; |
|
46 | + case 'NonExecutableCodeUnitTest.1.inc': |
|
47 | + return [ |
|
48 | + 5 => 1, |
|
49 | + 11 => 1, |
|
50 | + 17 => 1, |
|
51 | + 18 => 1, |
|
52 | + 19 => 2, |
|
53 | + 28 => 1, |
|
54 | + 32 => 1, |
|
55 | + 33 => 2, |
|
56 | + 34 => 2, |
|
57 | + 42 => 1, |
|
58 | + 45 => 1, |
|
59 | + 54 => 1, |
|
60 | + 58 => 1, |
|
61 | + 73 => 1, |
|
62 | + 83 => 1, |
|
63 | + 95 => 1, |
|
64 | + 105 => 1, |
|
65 | + 123 => 1, |
|
66 | + 147 => 1, |
|
67 | + 150 => 1, |
|
68 | + 153 => 1, |
|
69 | + 166 => 1, |
|
70 | + 180 => 1, |
|
71 | + 232 => 1, |
|
72 | + 240 => 1, |
|
73 | + 246 => 1, |
|
74 | + 252 => 1, |
|
75 | + 253 => 1, |
|
76 | + 254 => 2, |
|
77 | + ]; |
|
78 | + break; |
|
79 | + case 'NonExecutableCodeUnitTest.2.inc': |
|
80 | + return [ |
|
81 | + 7 => 1, |
|
82 | + 8 => 1, |
|
83 | + 9 => 1, |
|
84 | + 10 => 2, |
|
85 | + 14 => 1, |
|
86 | + 54 => 2, |
|
87 | + ]; |
|
88 | + break; |
|
89 | + default: |
|
90 | + return []; |
|
91 | + break; |
|
92 | 92 | }//end switch |
93 | 93 | |
94 | 94 | }//end getWarningList() |
@@ -50,8 +50,8 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | do { |
53 | - echo $a->count; |
|
54 | - $a->count--; |
|
53 | + echo $a->count; |
|
54 | + $a->count--; |
|
55 | 55 | } while($a->count); |
56 | 56 | |
57 | 57 | for ($i = 0; $i < $a->count; $i++) {} |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | } |
9 | 9 | |
10 | 10 | do { |
11 | -} while ($i < count($array)); |
|
11 | +}while ($i < count($array)); |
|
12 | 12 | |
13 | 13 | for ($i = 0; $i < count($this->children); $i++) { |
14 | 14 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | do { |
27 | -} while ($i < sizeof($array)); |
|
27 | +}while ($i < sizeof($array)); |
|
28 | 28 | |
29 | 29 | for ($i = 0; $i < sizeof($this->children); $i++) { |
30 | 30 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | do { |
44 | -} while ($i < strlen($string)); |
|
44 | +}while ($i < strlen($string)); |
|
45 | 45 | |
46 | 46 | for ($i = 0; $i < strlen($this->string); $i++) { |
47 | 47 | } |
@@ -52,7 +52,7 @@ discard block |
||
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 | for ($i = 0; $i < $a?->count; $i++) {} |
@@ -15,37 +15,37 @@ |
||
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 | - 8 => 1, |
|
30 | - 9 => 1, |
|
31 | - ]; |
|
32 | - |
|
33 | - }//end getErrorList() |
|
34 | - |
|
35 | - |
|
36 | - /** |
|
37 | - * Returns the lines where warnings should occur. |
|
38 | - * |
|
39 | - * The key of the array should represent the line number and the value |
|
40 | - * should represent the number of warnings that should occur on that line. |
|
41 | - * |
|
42 | - * @return array<int, int> |
|
43 | - */ |
|
44 | - public function getWarningList() |
|
45 | - { |
|
46 | - return []; |
|
47 | - |
|
48 | - }//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 | + 8 => 1, |
|
30 | + 9 => 1, |
|
31 | + ]; |
|
32 | + |
|
33 | + }//end getErrorList() |
|
34 | + |
|
35 | + |
|
36 | + /** |
|
37 | + * Returns the lines where warnings should occur. |
|
38 | + * |
|
39 | + * The key of the array should represent the line number and the value |
|
40 | + * should represent the number of warnings that should occur on that line. |
|
41 | + * |
|
42 | + * @return array<int, int> |
|
43 | + */ |
|
44 | + public function getWarningList() |
|
45 | + { |
|
46 | + return []; |
|
47 | + |
|
48 | + }//end getWarningList() |
|
49 | 49 | |
50 | 50 | |
51 | 51 | }//end class |
@@ -15,64 +15,64 @@ |
||
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 | - 7 => 1, |
|
30 | - 12 => 1, |
|
31 | - 18 => 1, |
|
32 | - 19 => 2, |
|
33 | - 20 => 1, |
|
34 | - 21 => 1, |
|
35 | - 22 => 3, |
|
36 | - 24 => 1, |
|
37 | - 26 => 1, |
|
38 | - 29 => 1, |
|
39 | - 30 => 1, |
|
40 | - 31 => 1, |
|
41 | - 34 => 1, |
|
42 | - 36 => 1, |
|
43 | - 40 => 1, |
|
44 | - 41 => 1, |
|
45 | - 44 => 1, |
|
46 | - 45 => 1, |
|
47 | - 49 => 1, |
|
48 | - 59 => 1, |
|
49 | - 63 => 1, |
|
50 | - 93 => 1, |
|
51 | - 94 => 2, |
|
52 | - 100 => 1, |
|
53 | - 102 => 1, |
|
54 | - 112 => 1, |
|
55 | - 113 => 1, |
|
56 | - 116 => 1, |
|
57 | - 117 => 1, |
|
58 | - ]; |
|
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 | + 7 => 1, |
|
30 | + 12 => 1, |
|
31 | + 18 => 1, |
|
32 | + 19 => 2, |
|
33 | + 20 => 1, |
|
34 | + 21 => 1, |
|
35 | + 22 => 3, |
|
36 | + 24 => 1, |
|
37 | + 26 => 1, |
|
38 | + 29 => 1, |
|
39 | + 30 => 1, |
|
40 | + 31 => 1, |
|
41 | + 34 => 1, |
|
42 | + 36 => 1, |
|
43 | + 40 => 1, |
|
44 | + 41 => 1, |
|
45 | + 44 => 1, |
|
46 | + 45 => 1, |
|
47 | + 49 => 1, |
|
48 | + 59 => 1, |
|
49 | + 63 => 1, |
|
50 | + 93 => 1, |
|
51 | + 94 => 2, |
|
52 | + 100 => 1, |
|
53 | + 102 => 1, |
|
54 | + 112 => 1, |
|
55 | + 113 => 1, |
|
56 | + 116 => 1, |
|
57 | + 117 => 1, |
|
58 | + ]; |
|
59 | 59 | |
60 | - }//end getErrorList() |
|
60 | + }//end getErrorList() |
|
61 | 61 | |
62 | 62 | |
63 | - /** |
|
64 | - * Returns the lines where warnings should occur. |
|
65 | - * |
|
66 | - * The key of the array should represent the line number and the value |
|
67 | - * should represent the number of warnings that should occur on that line. |
|
68 | - * |
|
69 | - * @return array<int, int> |
|
70 | - */ |
|
71 | - public function getWarningList() |
|
72 | - { |
|
73 | - return []; |
|
63 | + /** |
|
64 | + * Returns the lines where warnings should occur. |
|
65 | + * |
|
66 | + * The key of the array should represent the line number and the value |
|
67 | + * should represent the number of warnings that should occur on that line. |
|
68 | + * |
|
69 | + * @return array<int, int> |
|
70 | + */ |
|
71 | + public function getWarningList() |
|
72 | + { |
|
73 | + return []; |
|
74 | 74 | |
75 | - }//end getWarningList() |
|
75 | + }//end getWarningList() |
|
76 | 76 | |
77 | 77 | |
78 | 78 | }//end class |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='FunctionOpeningBraceSpaceUnitTest.inc') |
|
28 | + public function getErrorList($testFile = 'FunctionOpeningBraceSpaceUnitTest.inc') |
|
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | 31 | case 'FunctionOpeningBraceSpaceUnitTest.inc': |
@@ -15,54 +15,54 @@ |
||
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='FunctionOpeningBraceSpaceUnitTest.inc') |
|
29 | - { |
|
30 | - switch ($testFile) { |
|
31 | - case 'FunctionOpeningBraceSpaceUnitTest.inc': |
|
32 | - return [ |
|
33 | - 10 => 1, |
|
34 | - 25 => 1, |
|
35 | - 49 => 1, |
|
36 | - ]; |
|
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='FunctionOpeningBraceSpaceUnitTest.inc') |
|
29 | + { |
|
30 | + switch ($testFile) { |
|
31 | + case 'FunctionOpeningBraceSpaceUnitTest.inc': |
|
32 | + return [ |
|
33 | + 10 => 1, |
|
34 | + 25 => 1, |
|
35 | + 49 => 1, |
|
36 | + ]; |
|
37 | 37 | |
38 | - case 'FunctionOpeningBraceSpaceUnitTest.js': |
|
39 | - return [ |
|
40 | - 11 => 1, |
|
41 | - 31 => 1, |
|
42 | - 38 => 1, |
|
43 | - 88 => 1, |
|
44 | - ]; |
|
38 | + case 'FunctionOpeningBraceSpaceUnitTest.js': |
|
39 | + return [ |
|
40 | + 11 => 1, |
|
41 | + 31 => 1, |
|
42 | + 38 => 1, |
|
43 | + 88 => 1, |
|
44 | + ]; |
|
45 | 45 | |
46 | - default: |
|
47 | - return []; |
|
48 | - }//end switch |
|
46 | + default: |
|
47 | + return []; |
|
48 | + }//end switch |
|
49 | 49 | |
50 | - }//end getErrorList() |
|
50 | + }//end getErrorList() |
|
51 | 51 | |
52 | 52 | |
53 | - /** |
|
54 | - * Returns the lines where warnings should occur. |
|
55 | - * |
|
56 | - * The key of the array should represent the line number and the value |
|
57 | - * should represent the number of warnings that should occur on that line. |
|
58 | - * |
|
59 | - * @return array<int, int> |
|
60 | - */ |
|
61 | - public function getWarningList() |
|
62 | - { |
|
63 | - return []; |
|
53 | + /** |
|
54 | + * Returns the lines where warnings should occur. |
|
55 | + * |
|
56 | + * The key of the array should represent the line number and the value |
|
57 | + * should represent the number of warnings that should occur on that line. |
|
58 | + * |
|
59 | + * @return array<int, int> |
|
60 | + */ |
|
61 | + public function getWarningList() |
|
62 | + { |
|
63 | + return []; |
|
64 | 64 | |
65 | - }//end getWarningList() |
|
65 | + }//end getWarningList() |
|
66 | 66 | |
67 | 67 | |
68 | 68 | }//end class |
@@ -28,23 +28,23 @@ |
||
28 | 28 | public function getErrorList($testFile='FunctionOpeningBraceSpaceUnitTest.inc') |
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | - case 'FunctionOpeningBraceSpaceUnitTest.inc': |
|
32 | - return [ |
|
33 | - 10 => 1, |
|
34 | - 25 => 1, |
|
35 | - 49 => 1, |
|
36 | - ]; |
|
31 | + case 'FunctionOpeningBraceSpaceUnitTest.inc': |
|
32 | + return [ |
|
33 | + 10 => 1, |
|
34 | + 25 => 1, |
|
35 | + 49 => 1, |
|
36 | + ]; |
|
37 | 37 | |
38 | - case 'FunctionOpeningBraceSpaceUnitTest.js': |
|
39 | - return [ |
|
40 | - 11 => 1, |
|
41 | - 31 => 1, |
|
42 | - 38 => 1, |
|
43 | - 88 => 1, |
|
44 | - ]; |
|
38 | + case 'FunctionOpeningBraceSpaceUnitTest.js': |
|
39 | + return [ |
|
40 | + 11 => 1, |
|
41 | + 31 => 1, |
|
42 | + 38 => 1, |
|
43 | + 88 => 1, |
|
44 | + ]; |
|
45 | 45 | |
46 | - default: |
|
47 | - return []; |
|
46 | + default: |
|
47 | + return []; |
|
48 | 48 | }//end switch |
49 | 49 | |
50 | 50 | }//end getErrorList() |
@@ -15,42 +15,42 @@ |
||
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='LogicalOperatorSpacingUnitTest.inc') |
|
29 | - { |
|
30 | - return [ |
|
31 | - 4 => 2, |
|
32 | - 5 => 3, |
|
33 | - 6 => 3, |
|
34 | - 15 => 1, |
|
35 | - 17 => 1, |
|
36 | - ]; |
|
37 | - |
|
38 | - }//end getErrorList() |
|
39 | - |
|
40 | - |
|
41 | - /** |
|
42 | - * Returns the lines where warnings should occur. |
|
43 | - * |
|
44 | - * The key of the array should represent the line number and the value |
|
45 | - * should represent the number of warnings that should occur on that line. |
|
46 | - * |
|
47 | - * @return array<int, int> |
|
48 | - */ |
|
49 | - public function getWarningList() |
|
50 | - { |
|
51 | - return []; |
|
52 | - |
|
53 | - }//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='LogicalOperatorSpacingUnitTest.inc') |
|
29 | + { |
|
30 | + return [ |
|
31 | + 4 => 2, |
|
32 | + 5 => 3, |
|
33 | + 6 => 3, |
|
34 | + 15 => 1, |
|
35 | + 17 => 1, |
|
36 | + ]; |
|
37 | + |
|
38 | + }//end getErrorList() |
|
39 | + |
|
40 | + |
|
41 | + /** |
|
42 | + * Returns the lines where warnings should occur. |
|
43 | + * |
|
44 | + * The key of the array should represent the line number and the value |
|
45 | + * should represent the number of warnings that should occur on that line. |
|
46 | + * |
|
47 | + * @return array<int, int> |
|
48 | + */ |
|
49 | + public function getWarningList() |
|
50 | + { |
|
51 | + return []; |
|
52 | + |
|
53 | + }//end getWarningList() |
|
54 | 54 | |
55 | 55 | |
56 | 56 | }//end class |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='LogicalOperatorSpacingUnitTest.inc') |
|
28 | + public function getErrorList($testFile = 'LogicalOperatorSpacingUnitTest.inc') |
|
29 | 29 | { |
30 | 30 | return [ |
31 | 31 | 4 => 2, |
@@ -15,46 +15,46 @@ |
||
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 | - 3 => 1, |
|
30 | - 7 => 1, |
|
31 | - 11 => 1, |
|
32 | - 15 => 1, |
|
33 | - 19 => 1, |
|
34 | - 23 => 1, |
|
35 | - 27 => 1, |
|
36 | - 31 => 1, |
|
37 | - 34 => 1, |
|
38 | - 35 => 1, |
|
39 | - 39 => 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 | - * @return array<int, int> |
|
52 | - */ |
|
53 | - public function getWarningList() |
|
54 | - { |
|
55 | - return []; |
|
56 | - |
|
57 | - }//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 | + 3 => 1, |
|
30 | + 7 => 1, |
|
31 | + 11 => 1, |
|
32 | + 15 => 1, |
|
33 | + 19 => 1, |
|
34 | + 23 => 1, |
|
35 | + 27 => 1, |
|
36 | + 31 => 1, |
|
37 | + 34 => 1, |
|
38 | + 35 => 1, |
|
39 | + 39 => 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 | + * @return array<int, int> |
|
52 | + */ |
|
53 | + public function getWarningList() |
|
54 | + { |
|
55 | + return []; |
|
56 | + |
|
57 | + }//end getWarningList() |
|
58 | 58 | |
59 | 59 | |
60 | 60 | }//end class |
@@ -7,14 +7,14 @@ |
||
7 | 7 | |
8 | 8 | // Spacing after || below is ignored as it is EOL whitespace. |
9 | 9 | if ($foo || |
10 | - $bar |
|
11 | - && $baz |
|
10 | + $bar |
|
11 | + && $baz |
|
12 | 12 | ) { |
13 | 13 | } |
14 | 14 | |
15 | 15 | if ($foo|| |
16 | - $bar |
|
17 | - &&$baz |
|
16 | + $bar |
|
17 | + &&$baz |
|
18 | 18 | ) { |
19 | 19 | } |
20 | 20 |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if ($foo || $bar) {} |
4 | -if ($foo||$bar && $baz) {} |
|
5 | -if ($foo|| $bar&&$baz) {} |
|
6 | -if ($foo || $bar && $baz) {} |
|
4 | +if ($foo || $bar && $baz) {} |
|
5 | +if ($foo || $bar && $baz) {} |
|
6 | +if ($foo || $bar && $baz) {} |
|
7 | 7 | |
8 | 8 | // Spacing after || below is ignored as it is EOL whitespace. |
9 | 9 | if ($foo || |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | ) { |
13 | 13 | } |
14 | 14 | |
15 | -if ($foo|| |
|
15 | +if ($foo || |
|
16 | 16 | $bar |
17 | 17 | &&$baz |
18 | 18 | ) { |