@@ -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 | - * @return array<int, int> |
|
25 | - */ |
|
26 | - public function getErrorList() |
|
27 | - { |
|
28 | - return [ |
|
29 | - 14 => 1, |
|
30 | - 15 => 1, |
|
31 | - 16 => 1, |
|
32 | - 17 => 1, |
|
33 | - 18 => 1, |
|
34 | - 21 => 4, |
|
35 | - 22 => 3, |
|
36 | - 23 => 3, |
|
37 | - 25 => 1, |
|
38 | - 26 => 2, |
|
39 | - 27 => 2, |
|
40 | - 32 => 4, |
|
41 | - 36 => 1, |
|
42 | - 37 => 1, |
|
43 | - 38 => 1, |
|
44 | - 39 => 1, |
|
45 | - 43 => 2, |
|
46 | - 44 => 1, |
|
47 | - 46 => 1, |
|
48 | - ]; |
|
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 | + 14 => 1, |
|
30 | + 15 => 1, |
|
31 | + 16 => 1, |
|
32 | + 17 => 1, |
|
33 | + 18 => 1, |
|
34 | + 21 => 4, |
|
35 | + 22 => 3, |
|
36 | + 23 => 3, |
|
37 | + 25 => 1, |
|
38 | + 26 => 2, |
|
39 | + 27 => 2, |
|
40 | + 32 => 4, |
|
41 | + 36 => 1, |
|
42 | + 37 => 1, |
|
43 | + 38 => 1, |
|
44 | + 39 => 1, |
|
45 | + 43 => 2, |
|
46 | + 44 => 1, |
|
47 | + 46 => 1, |
|
48 | + ]; |
|
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 |
@@ -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 | - 10 => 3, |
|
30 | - 11 => 4, |
|
31 | - 12 => 1, |
|
32 | - 13 => 3, |
|
33 | - 14 => 7, |
|
34 | - 15 => 1, |
|
35 | - 19 => 1, |
|
36 | - 20 => 1, |
|
37 | - 21 => 1, |
|
38 | - 25 => 1, |
|
39 | - 28 => 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 | + 10 => 3, |
|
30 | + 11 => 4, |
|
31 | + 12 => 1, |
|
32 | + 13 => 3, |
|
33 | + 14 => 7, |
|
34 | + 15 => 1, |
|
35 | + 19 => 1, |
|
36 | + 20 => 1, |
|
37 | + 21 => 1, |
|
38 | + 25 => 1, |
|
39 | + 28 => 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 |
@@ -61,10 +61,10 @@ discard block |
||
61 | 61 | use Something\True; |
62 | 62 | class MyClass |
63 | 63 | { |
64 | - public function myFunction() |
|
65 | - { |
|
66 | - $var = array('foo' => new True()); |
|
67 | - } |
|
64 | + public function myFunction() |
|
65 | + { |
|
66 | + $var = array('foo' => new True()); |
|
67 | + } |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $x = $f?false:TRUE; |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | |
73 | 73 | class MyClass |
74 | 74 | { |
75 | - // Spice things up a little. |
|
76 | - const true = FALSE; |
|
75 | + // Spice things up a little. |
|
76 | + const true = FALSE; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | var_dump(MyClass::true); |
@@ -29,19 +29,19 @@ |
||
29 | 29 | $foo = function (bool $a, callable $b) use ($foo) : Bar {}; |
30 | 30 | |
31 | 31 | class Testing { |
32 | - public function TestThis(SELF $a, obJect $b, Parent $c) : VOID {} |
|
32 | + public function TestThis(SELF $a, obJect $b, Parent $c) : VOID {} |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | function foo( |
36 | - ?Float $a, |
|
37 | - ? String $b, |
|
38 | - ?ITERABLE $c, |
|
39 | - ? Object $d, |
|
40 | - ?Foo\Bar $e |
|
36 | + ?Float $a, |
|
37 | + ? String $b, |
|
38 | + ?ITERABLE $c, |
|
39 | + ? Object $d, |
|
40 | + ?Foo\Bar $e |
|
41 | 41 | ) : ?Foo\Bar {} |
42 | 42 | |
43 | 43 | $foo = function (?Int $a, ? Callable $b) |
44 | - :?INT{}; |
|
44 | + :?INT{}; |
|
45 | 45 | |
46 | 46 | $var = (BInARY) $string; |
47 | 47 | $var = (binary)$string; |
@@ -15,43 +15,43 @@ |
||
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 'CharacterBeforePHPOpeningTagUnitTest.1.inc': |
|
32 | - return [2 => 1]; |
|
33 | - break; |
|
34 | - default: |
|
35 | - return []; |
|
36 | - break; |
|
37 | - }//end switch |
|
38 | - |
|
39 | - }//end getErrorList() |
|
40 | - |
|
41 | - |
|
42 | - /** |
|
43 | - * Returns the lines where warnings should occur. |
|
44 | - * |
|
45 | - * The key of the array should represent the line number and the value |
|
46 | - * should represent the number of warnings that should occur on that line. |
|
47 | - * |
|
48 | - * @return array<int, int> |
|
49 | - */ |
|
50 | - public function getWarningList() |
|
51 | - { |
|
52 | - return []; |
|
53 | - |
|
54 | - }//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='') |
|
29 | + { |
|
30 | + switch ($testFile) { |
|
31 | + case 'CharacterBeforePHPOpeningTagUnitTest.1.inc': |
|
32 | + return [2 => 1]; |
|
33 | + break; |
|
34 | + default: |
|
35 | + return []; |
|
36 | + break; |
|
37 | + }//end switch |
|
38 | + |
|
39 | + }//end getErrorList() |
|
40 | + |
|
41 | + |
|
42 | + /** |
|
43 | + * Returns the lines where warnings should occur. |
|
44 | + * |
|
45 | + * The key of the array should represent the line number and the value |
|
46 | + * should represent the number of warnings that should occur on that line. |
|
47 | + * |
|
48 | + * @return array<int, int> |
|
49 | + */ |
|
50 | + public function getWarningList() |
|
51 | + { |
|
52 | + return []; |
|
53 | + |
|
54 | + }//end getWarningList() |
|
55 | 55 | |
56 | 56 | |
57 | 57 | }//end class |
@@ -15,70 +15,70 @@ |
||
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='LowerCaseConstantUnitTest.inc') |
|
29 | - { |
|
30 | - switch ($testFile) { |
|
31 | - case 'LowerCaseConstantUnitTest.inc': |
|
32 | - return [ |
|
33 | - 7 => 1, |
|
34 | - 10 => 1, |
|
35 | - 15 => 1, |
|
36 | - 16 => 1, |
|
37 | - 23 => 1, |
|
38 | - 26 => 1, |
|
39 | - 31 => 1, |
|
40 | - 32 => 1, |
|
41 | - 39 => 1, |
|
42 | - 42 => 1, |
|
43 | - 47 => 1, |
|
44 | - 48 => 1, |
|
45 | - 70 => 1, |
|
46 | - 71 => 1, |
|
47 | - ]; |
|
48 | - break; |
|
49 | - case 'LowerCaseConstantUnitTest.js': |
|
50 | - return [ |
|
51 | - 2 => 1, |
|
52 | - 3 => 1, |
|
53 | - 4 => 1, |
|
54 | - 7 => 1, |
|
55 | - 8 => 1, |
|
56 | - 12 => 1, |
|
57 | - 13 => 1, |
|
58 | - 14 => 1, |
|
59 | - ]; |
|
60 | - break; |
|
61 | - default: |
|
62 | - return []; |
|
63 | - break; |
|
64 | - }//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='LowerCaseConstantUnitTest.inc') |
|
29 | + { |
|
30 | + switch ($testFile) { |
|
31 | + case 'LowerCaseConstantUnitTest.inc': |
|
32 | + return [ |
|
33 | + 7 => 1, |
|
34 | + 10 => 1, |
|
35 | + 15 => 1, |
|
36 | + 16 => 1, |
|
37 | + 23 => 1, |
|
38 | + 26 => 1, |
|
39 | + 31 => 1, |
|
40 | + 32 => 1, |
|
41 | + 39 => 1, |
|
42 | + 42 => 1, |
|
43 | + 47 => 1, |
|
44 | + 48 => 1, |
|
45 | + 70 => 1, |
|
46 | + 71 => 1, |
|
47 | + ]; |
|
48 | + break; |
|
49 | + case 'LowerCaseConstantUnitTest.js': |
|
50 | + return [ |
|
51 | + 2 => 1, |
|
52 | + 3 => 1, |
|
53 | + 4 => 1, |
|
54 | + 7 => 1, |
|
55 | + 8 => 1, |
|
56 | + 12 => 1, |
|
57 | + 13 => 1, |
|
58 | + 14 => 1, |
|
59 | + ]; |
|
60 | + break; |
|
61 | + default: |
|
62 | + return []; |
|
63 | + break; |
|
64 | + }//end switch |
|
65 | 65 | |
66 | - }//end getErrorList() |
|
66 | + }//end getErrorList() |
|
67 | 67 | |
68 | 68 | |
69 | - /** |
|
70 | - * Returns the lines where warnings should occur. |
|
71 | - * |
|
72 | - * The key of the array should represent the line number and the value |
|
73 | - * should represent the number of warnings that should occur on that line. |
|
74 | - * |
|
75 | - * @return array<int, int> |
|
76 | - */ |
|
77 | - public function getWarningList() |
|
78 | - { |
|
79 | - return []; |
|
69 | + /** |
|
70 | + * Returns the lines where warnings should occur. |
|
71 | + * |
|
72 | + * The key of the array should represent the line number and the value |
|
73 | + * should represent the number of warnings that should occur on that line. |
|
74 | + * |
|
75 | + * @return array<int, int> |
|
76 | + */ |
|
77 | + public function getWarningList() |
|
78 | + { |
|
79 | + return []; |
|
80 | 80 | |
81 | - }//end getWarningList() |
|
81 | + }//end getWarningList() |
|
82 | 82 | |
83 | 83 | |
84 | 84 | }//end class |
@@ -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 [9 => 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 [9 => 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 | - |
|
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 | - 3 => 1, |
|
45 | - 6 => 1, |
|
46 | - 11 => 1, |
|
47 | - 16 => 1, |
|
48 | - ]; |
|
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 | + |
|
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 | + 3 => 1, |
|
45 | + 6 => 1, |
|
46 | + 11 => 1, |
|
47 | + 16 => 1, |
|
48 | + ]; |
|
49 | + |
|
50 | + }//end getWarningList() |
|
51 | 51 | |
52 | 52 | |
53 | 53 | }//end class |
@@ -15,44 +15,44 @@ |
||
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 | - $errors = []; |
|
29 | - |
|
30 | - if (PHP_VERSION_ID >= 70200) { |
|
31 | - $errors[3] = 1; |
|
32 | - } |
|
33 | - |
|
34 | - if (PHP_VERSION_ID >= 70300) { |
|
35 | - $errors[4] = 1; |
|
36 | - } |
|
37 | - |
|
38 | - return $errors; |
|
39 | - |
|
40 | - }//end getErrorList() |
|
41 | - |
|
42 | - |
|
43 | - /** |
|
44 | - * Returns the lines where warnings should occur. |
|
45 | - * |
|
46 | - * The key of the array should represent the line number and the value |
|
47 | - * should represent the number of warnings that should occur on that line. |
|
48 | - * |
|
49 | - * @return array<int, int> |
|
50 | - */ |
|
51 | - public function getWarningList() |
|
52 | - { |
|
53 | - return []; |
|
54 | - |
|
55 | - }//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 | + $errors = []; |
|
29 | + |
|
30 | + if (PHP_VERSION_ID >= 70200) { |
|
31 | + $errors[3] = 1; |
|
32 | + } |
|
33 | + |
|
34 | + if (PHP_VERSION_ID >= 70300) { |
|
35 | + $errors[4] = 1; |
|
36 | + } |
|
37 | + |
|
38 | + return $errors; |
|
39 | + |
|
40 | + }//end getErrorList() |
|
41 | + |
|
42 | + |
|
43 | + /** |
|
44 | + * Returns the lines where warnings should occur. |
|
45 | + * |
|
46 | + * The key of the array should represent the line number and the value |
|
47 | + * should represent the number of warnings that should occur on that line. |
|
48 | + * |
|
49 | + * @return array<int, int> |
|
50 | + */ |
|
51 | + public function getWarningList() |
|
52 | + { |
|
53 | + return []; |
|
54 | + |
|
55 | + }//end getWarningList() |
|
56 | 56 | |
57 | 57 | |
58 | 58 | }//end class |