@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @return array<int, int> |
| 27 | 27 | */ |
| 28 | - public function getErrorList($testFile='ControlStructureSpacingUnitTest.inc') |
|
| 28 | + public function getErrorList($testFile = 'ControlStructureSpacingUnitTest.inc') |
|
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | 31 | case 'ControlStructureSpacingUnitTest.inc': |
@@ -15,89 +15,89 @@ |
||
| 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='ControlStructureSpacingUnitTest.inc') |
|
| 29 | - { |
|
| 30 | - switch ($testFile) { |
|
| 31 | - case 'ControlStructureSpacingUnitTest.inc': |
|
| 32 | - return [ |
|
| 33 | - 3 => 1, |
|
| 34 | - 5 => 1, |
|
| 35 | - 8 => 1, |
|
| 36 | - 15 => 1, |
|
| 37 | - 23 => 1, |
|
| 38 | - 74 => 1, |
|
| 39 | - 79 => 1, |
|
| 40 | - 82 => 1, |
|
| 41 | - 83 => 1, |
|
| 42 | - 87 => 1, |
|
| 43 | - 103 => 1, |
|
| 44 | - 113 => 2, |
|
| 45 | - 114 => 2, |
|
| 46 | - 118 => 1, |
|
| 47 | - 150 => 1, |
|
| 48 | - 153 => 1, |
|
| 49 | - 154 => 1, |
|
| 50 | - 157 => 1, |
|
| 51 | - 170 => 1, |
|
| 52 | - 176 => 2, |
|
| 53 | - 179 => 1, |
|
| 54 | - 189 => 1, |
|
| 55 | - 225 => 1, |
|
| 56 | - 237 => 1, |
|
| 57 | - 242 => 1, |
|
| 58 | - 246 => 1, |
|
| 59 | - 248 => 1, |
|
| 60 | - 257 => 3, |
|
| 61 | - 261 => 1, |
|
| 62 | - 262 => 1, |
|
| 63 | - ]; |
|
| 64 | - break; |
|
| 65 | - case 'ControlStructureSpacingUnitTest.js': |
|
| 66 | - return [ |
|
| 67 | - 3 => 1, |
|
| 68 | - 9 => 1, |
|
| 69 | - 15 => 1, |
|
| 70 | - 21 => 1, |
|
| 71 | - 56 => 1, |
|
| 72 | - 61 => 1, |
|
| 73 | - 64 => 1, |
|
| 74 | - 65 => 1, |
|
| 75 | - 68 => 1, |
|
| 76 | - 74 => 2, |
|
| 77 | - 75 => 2, |
|
| 78 | - ]; |
|
| 79 | - break; |
|
| 80 | - default: |
|
| 81 | - return []; |
|
| 82 | - break; |
|
| 83 | - }//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='ControlStructureSpacingUnitTest.inc') |
|
| 29 | + { |
|
| 30 | + switch ($testFile) { |
|
| 31 | + case 'ControlStructureSpacingUnitTest.inc': |
|
| 32 | + return [ |
|
| 33 | + 3 => 1, |
|
| 34 | + 5 => 1, |
|
| 35 | + 8 => 1, |
|
| 36 | + 15 => 1, |
|
| 37 | + 23 => 1, |
|
| 38 | + 74 => 1, |
|
| 39 | + 79 => 1, |
|
| 40 | + 82 => 1, |
|
| 41 | + 83 => 1, |
|
| 42 | + 87 => 1, |
|
| 43 | + 103 => 1, |
|
| 44 | + 113 => 2, |
|
| 45 | + 114 => 2, |
|
| 46 | + 118 => 1, |
|
| 47 | + 150 => 1, |
|
| 48 | + 153 => 1, |
|
| 49 | + 154 => 1, |
|
| 50 | + 157 => 1, |
|
| 51 | + 170 => 1, |
|
| 52 | + 176 => 2, |
|
| 53 | + 179 => 1, |
|
| 54 | + 189 => 1, |
|
| 55 | + 225 => 1, |
|
| 56 | + 237 => 1, |
|
| 57 | + 242 => 1, |
|
| 58 | + 246 => 1, |
|
| 59 | + 248 => 1, |
|
| 60 | + 257 => 3, |
|
| 61 | + 261 => 1, |
|
| 62 | + 262 => 1, |
|
| 63 | + ]; |
|
| 64 | + break; |
|
| 65 | + case 'ControlStructureSpacingUnitTest.js': |
|
| 66 | + return [ |
|
| 67 | + 3 => 1, |
|
| 68 | + 9 => 1, |
|
| 69 | + 15 => 1, |
|
| 70 | + 21 => 1, |
|
| 71 | + 56 => 1, |
|
| 72 | + 61 => 1, |
|
| 73 | + 64 => 1, |
|
| 74 | + 65 => 1, |
|
| 75 | + 68 => 1, |
|
| 76 | + 74 => 2, |
|
| 77 | + 75 => 2, |
|
| 78 | + ]; |
|
| 79 | + break; |
|
| 80 | + default: |
|
| 81 | + return []; |
|
| 82 | + break; |
|
| 83 | + }//end switch |
|
| 84 | 84 | |
| 85 | - }//end getErrorList() |
|
| 85 | + }//end getErrorList() |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | - /** |
|
| 89 | - * Returns the lines where warnings should occur. |
|
| 90 | - * |
|
| 91 | - * The key of the array should represent the line number and the value |
|
| 92 | - * should represent the number of warnings that should occur on that line. |
|
| 93 | - * |
|
| 94 | - * @return array<int, int> |
|
| 95 | - */ |
|
| 96 | - public function getWarningList() |
|
| 97 | - { |
|
| 98 | - return []; |
|
| 88 | + /** |
|
| 89 | + * Returns the lines where warnings should occur. |
|
| 90 | + * |
|
| 91 | + * The key of the array should represent the line number and the value |
|
| 92 | + * should represent the number of warnings that should occur on that line. |
|
| 93 | + * |
|
| 94 | + * @return array<int, int> |
|
| 95 | + */ |
|
| 96 | + public function getWarningList() |
|
| 97 | + { |
|
| 98 | + return []; |
|
| 99 | 99 | |
| 100 | - }//end getWarningList() |
|
| 100 | + }//end getWarningList() |
|
| 101 | 101 | |
| 102 | 102 | |
| 103 | 103 | }//end class |
@@ -28,58 +28,58 @@ |
||
| 28 | 28 | public function getErrorList($testFile='ControlStructureSpacingUnitTest.inc') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'ControlStructureSpacingUnitTest.inc': |
|
| 32 | - return [ |
|
| 33 | - 3 => 1, |
|
| 34 | - 5 => 1, |
|
| 35 | - 8 => 1, |
|
| 36 | - 15 => 1, |
|
| 37 | - 23 => 1, |
|
| 38 | - 74 => 1, |
|
| 39 | - 79 => 1, |
|
| 40 | - 82 => 1, |
|
| 41 | - 83 => 1, |
|
| 42 | - 87 => 1, |
|
| 43 | - 103 => 1, |
|
| 44 | - 113 => 2, |
|
| 45 | - 114 => 2, |
|
| 46 | - 118 => 1, |
|
| 47 | - 150 => 1, |
|
| 48 | - 153 => 1, |
|
| 49 | - 154 => 1, |
|
| 50 | - 157 => 1, |
|
| 51 | - 170 => 1, |
|
| 52 | - 176 => 2, |
|
| 53 | - 179 => 1, |
|
| 54 | - 189 => 1, |
|
| 55 | - 225 => 1, |
|
| 56 | - 237 => 1, |
|
| 57 | - 242 => 1, |
|
| 58 | - 246 => 1, |
|
| 59 | - 248 => 1, |
|
| 60 | - 257 => 3, |
|
| 61 | - 261 => 1, |
|
| 62 | - 262 => 1, |
|
| 63 | - ]; |
|
| 64 | - break; |
|
| 65 | - case 'ControlStructureSpacingUnitTest.js': |
|
| 66 | - return [ |
|
| 67 | - 3 => 1, |
|
| 68 | - 9 => 1, |
|
| 69 | - 15 => 1, |
|
| 70 | - 21 => 1, |
|
| 71 | - 56 => 1, |
|
| 72 | - 61 => 1, |
|
| 73 | - 64 => 1, |
|
| 74 | - 65 => 1, |
|
| 75 | - 68 => 1, |
|
| 76 | - 74 => 2, |
|
| 77 | - 75 => 2, |
|
| 78 | - ]; |
|
| 79 | - break; |
|
| 80 | - default: |
|
| 81 | - return []; |
|
| 82 | - break; |
|
| 31 | + case 'ControlStructureSpacingUnitTest.inc': |
|
| 32 | + return [ |
|
| 33 | + 3 => 1, |
|
| 34 | + 5 => 1, |
|
| 35 | + 8 => 1, |
|
| 36 | + 15 => 1, |
|
| 37 | + 23 => 1, |
|
| 38 | + 74 => 1, |
|
| 39 | + 79 => 1, |
|
| 40 | + 82 => 1, |
|
| 41 | + 83 => 1, |
|
| 42 | + 87 => 1, |
|
| 43 | + 103 => 1, |
|
| 44 | + 113 => 2, |
|
| 45 | + 114 => 2, |
|
| 46 | + 118 => 1, |
|
| 47 | + 150 => 1, |
|
| 48 | + 153 => 1, |
|
| 49 | + 154 => 1, |
|
| 50 | + 157 => 1, |
|
| 51 | + 170 => 1, |
|
| 52 | + 176 => 2, |
|
| 53 | + 179 => 1, |
|
| 54 | + 189 => 1, |
|
| 55 | + 225 => 1, |
|
| 56 | + 237 => 1, |
|
| 57 | + 242 => 1, |
|
| 58 | + 246 => 1, |
|
| 59 | + 248 => 1, |
|
| 60 | + 257 => 3, |
|
| 61 | + 261 => 1, |
|
| 62 | + 262 => 1, |
|
| 63 | + ]; |
|
| 64 | + break; |
|
| 65 | + case 'ControlStructureSpacingUnitTest.js': |
|
| 66 | + return [ |
|
| 67 | + 3 => 1, |
|
| 68 | + 9 => 1, |
|
| 69 | + 15 => 1, |
|
| 70 | + 21 => 1, |
|
| 71 | + 56 => 1, |
|
| 72 | + 61 => 1, |
|
| 73 | + 64 => 1, |
|
| 74 | + 65 => 1, |
|
| 75 | + 68 => 1, |
|
| 76 | + 74 => 2, |
|
| 77 | + 75 => 2, |
|
| 78 | + ]; |
|
| 79 | + break; |
|
| 80 | + default: |
|
| 81 | + return []; |
|
| 82 | + break; |
|
| 83 | 83 | }//end switch |
| 84 | 84 | |
| 85 | 85 | }//end getErrorList() |
@@ -1,26 +1,26 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | function MyFunction1() { |
| 4 | - // Some code goes here. |
|
| 4 | + // Some code goes here. |
|
| 5 | 5 | |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | function MyFunction2() { |
| 9 | - // Some code goes here. |
|
| 9 | + // Some code goes here. |
|
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | class MyClass |
| 13 | 13 | { |
| 14 | - function MyFunction3() { |
|
| 15 | - // Some code goes here. |
|
| 14 | + function MyFunction3() { |
|
| 15 | + // Some code goes here. |
|
| 16 | 16 | |
| 17 | - } |
|
| 17 | + } |
|
| 18 | 18 | |
| 19 | - function MyFunction4() { |
|
| 20 | - // Some code goes here. |
|
| 21 | - } |
|
| 19 | + function MyFunction4() { |
|
| 20 | + // Some code goes here. |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - public function register(); |
|
| 23 | + public function register(); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function register(); |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | function foo() |
| 34 | 34 | { |
| 35 | - for ($i = 0; $i < $bar; $i++) { |
|
| 36 | - }//end for |
|
| 35 | + for ($i = 0; $i < $bar; $i++) { |
|
| 36 | + }//end for |
|
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | } |
@@ -15,62 +15,62 @@ |
||
| 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='FunctionClosingBraceSpaceUnitTest.inc') |
|
| 29 | - { |
|
| 30 | - switch ($testFile) { |
|
| 31 | - case 'FunctionClosingBraceSpaceUnitTest.inc': |
|
| 32 | - return [ |
|
| 33 | - 10 => 1, |
|
| 34 | - 21 => 1, |
|
| 35 | - 28 => 1, |
|
| 36 | - 29 => 1, |
|
| 37 | - 31 => 1, |
|
| 38 | - 39 => 1, |
|
| 39 | - ]; |
|
| 40 | - break; |
|
| 41 | - case 'FunctionClosingBraceSpaceUnitTest.js': |
|
| 42 | - return [ |
|
| 43 | - 13 => 1, |
|
| 44 | - 25 => 1, |
|
| 45 | - 32 => 1, |
|
| 46 | - 53 => 1, |
|
| 47 | - 59 => 1, |
|
| 48 | - 67 => 1, |
|
| 49 | - 84 => 1, |
|
| 50 | - 128 => 1, |
|
| 51 | - ]; |
|
| 52 | - break; |
|
| 53 | - default: |
|
| 54 | - return []; |
|
| 55 | - break; |
|
| 56 | - }//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='FunctionClosingBraceSpaceUnitTest.inc') |
|
| 29 | + { |
|
| 30 | + switch ($testFile) { |
|
| 31 | + case 'FunctionClosingBraceSpaceUnitTest.inc': |
|
| 32 | + return [ |
|
| 33 | + 10 => 1, |
|
| 34 | + 21 => 1, |
|
| 35 | + 28 => 1, |
|
| 36 | + 29 => 1, |
|
| 37 | + 31 => 1, |
|
| 38 | + 39 => 1, |
|
| 39 | + ]; |
|
| 40 | + break; |
|
| 41 | + case 'FunctionClosingBraceSpaceUnitTest.js': |
|
| 42 | + return [ |
|
| 43 | + 13 => 1, |
|
| 44 | + 25 => 1, |
|
| 45 | + 32 => 1, |
|
| 46 | + 53 => 1, |
|
| 47 | + 59 => 1, |
|
| 48 | + 67 => 1, |
|
| 49 | + 84 => 1, |
|
| 50 | + 128 => 1, |
|
| 51 | + ]; |
|
| 52 | + break; |
|
| 53 | + default: |
|
| 54 | + return []; |
|
| 55 | + break; |
|
| 56 | + }//end switch |
|
| 57 | 57 | |
| 58 | - }//end getErrorList() |
|
| 58 | + }//end getErrorList() |
|
| 59 | 59 | |
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * Returns the lines where warnings should occur. |
|
| 63 | - * |
|
| 64 | - * The key of the array should represent the line number and the value |
|
| 65 | - * should represent the number of warnings that should occur on that line. |
|
| 66 | - * |
|
| 67 | - * @return array<int, int> |
|
| 68 | - */ |
|
| 69 | - public function getWarningList() |
|
| 70 | - { |
|
| 71 | - return []; |
|
| 61 | + /** |
|
| 62 | + * Returns the lines where warnings should occur. |
|
| 63 | + * |
|
| 64 | + * The key of the array should represent the line number and the value |
|
| 65 | + * should represent the number of warnings that should occur on that line. |
|
| 66 | + * |
|
| 67 | + * @return array<int, int> |
|
| 68 | + */ |
|
| 69 | + public function getWarningList() |
|
| 70 | + { |
|
| 71 | + return []; |
|
| 72 | 72 | |
| 73 | - }//end getWarningList() |
|
| 73 | + }//end getWarningList() |
|
| 74 | 74 | |
| 75 | 75 | |
| 76 | 76 | }//end class |
@@ -28,31 +28,31 @@ |
||
| 28 | 28 | public function getErrorList($testFile='FunctionClosingBraceSpaceUnitTest.inc') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'FunctionClosingBraceSpaceUnitTest.inc': |
|
| 32 | - return [ |
|
| 33 | - 10 => 1, |
|
| 34 | - 21 => 1, |
|
| 35 | - 28 => 1, |
|
| 36 | - 29 => 1, |
|
| 37 | - 31 => 1, |
|
| 38 | - 39 => 1, |
|
| 39 | - ]; |
|
| 40 | - break; |
|
| 41 | - case 'FunctionClosingBraceSpaceUnitTest.js': |
|
| 42 | - return [ |
|
| 43 | - 13 => 1, |
|
| 44 | - 25 => 1, |
|
| 45 | - 32 => 1, |
|
| 46 | - 53 => 1, |
|
| 47 | - 59 => 1, |
|
| 48 | - 67 => 1, |
|
| 49 | - 84 => 1, |
|
| 50 | - 128 => 1, |
|
| 51 | - ]; |
|
| 52 | - break; |
|
| 53 | - default: |
|
| 54 | - return []; |
|
| 55 | - break; |
|
| 31 | + case 'FunctionClosingBraceSpaceUnitTest.inc': |
|
| 32 | + return [ |
|
| 33 | + 10 => 1, |
|
| 34 | + 21 => 1, |
|
| 35 | + 28 => 1, |
|
| 36 | + 29 => 1, |
|
| 37 | + 31 => 1, |
|
| 38 | + 39 => 1, |
|
| 39 | + ]; |
|
| 40 | + break; |
|
| 41 | + case 'FunctionClosingBraceSpaceUnitTest.js': |
|
| 42 | + return [ |
|
| 43 | + 13 => 1, |
|
| 44 | + 25 => 1, |
|
| 45 | + 32 => 1, |
|
| 46 | + 53 => 1, |
|
| 47 | + 59 => 1, |
|
| 48 | + 67 => 1, |
|
| 49 | + 84 => 1, |
|
| 50 | + 128 => 1, |
|
| 51 | + ]; |
|
| 52 | + break; |
|
| 53 | + default: |
|
| 54 | + return []; |
|
| 55 | + break; |
|
| 56 | 56 | }//end switch |
| 57 | 57 | |
| 58 | 58 | }//end getErrorList() |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @return array<int, int> |
| 27 | 27 | */ |
| 28 | - public function getErrorList($testFile='FunctionClosingBraceSpaceUnitTest.inc') |
|
| 28 | + public function getErrorList($testFile = 'FunctionClosingBraceSpaceUnitTest.inc') |
|
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | 31 | case 'FunctionClosingBraceSpaceUnitTest.inc': |
@@ -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 | - 2 => 1, |
|
| 30 | - 4 => 1, |
|
| 31 | - 9 => 2, |
|
| 32 | - 10 => 1, |
|
| 33 | - 12 => 1, |
|
| 34 | - 18 => 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 | + 2 => 1, |
|
| 30 | + 4 => 1, |
|
| 31 | + 9 => 2, |
|
| 32 | + 10 => 1, |
|
| 33 | + 12 => 1, |
|
| 34 | + 18 => 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 |
@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | $chr = $str{0}; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - if (!class_exists($class_name)) { |
|
| 33 | + if ( ! class_exists($class_name)) { |
|
| 34 | 34 | echo $error; |
| 35 | 35 | } |
| 36 | - $this->{$property} =& new $class_name($this->db_index); |
|
| 37 | - $this->modules[$module] =& $this->{$property}; |
|
| 36 | + $this->{$property} = & new $class_name($this->db_index); |
|
| 37 | + $this->modules[$module] = & $this->{$property}; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | foreach ($elements as $element) { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | ?> |
| 64 | 64 | |
| 65 | -<?php while($row = $data->getRow()): ?> |
|
| 65 | +<?php while ($row = $data->getRow()): ?> |
|
| 66 | 66 | <p><?= $val ?></p> |
| 67 | 67 | <?php endwhile; ?> |
| 68 | 68 | |
@@ -93,15 +93,15 @@ discard block |
||
| 93 | 93 | public function foo() |
| 94 | 94 | { |
| 95 | 95 | $foo('some |
| 96 | - long description', function () { |
|
| 96 | + long description', function() { |
|
| 97 | 97 | }); |
| 98 | 98 | |
| 99 | 99 | $foo('some |
| 100 | 100 | long |
| 101 | - description', function () { |
|
| 101 | + description', function() { |
|
| 102 | 102 | }); |
| 103 | 103 | |
| 104 | 104 | $foo( |
| 105 | -'bad indent here leads to bad indent for closer', function () { |
|
| 105 | +'bad indent here leads to bad indent for closer', function() { |
|
| 106 | 106 | }); |
| 107 | 107 | } |
@@ -2,19 +2,19 @@ discard block |
||
| 2 | 2 | use some\foo\{ClassA, ClassB, ClassC as C}; |
| 3 | 3 | class Test |
| 4 | 4 | { |
| 5 | - public function __construct() |
|
| 6 | - { |
|
| 7 | - } |
|
| 5 | + public function __construct() |
|
| 6 | + { |
|
| 7 | + } |
|
| 8 | 8 | |
| 9 | - function test1() |
|
| 10 | - { |
|
| 11 | - } |
|
| 9 | + function test1() |
|
| 10 | + { |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - function test2() {} |
|
| 13 | + function test2() {} |
|
| 14 | 14 | |
| 15 | - private function _test3() |
|
| 16 | - { |
|
| 17 | - } |
|
| 15 | + private function _test3() |
|
| 16 | + { |
|
| 17 | + } |
|
| 18 | 18 | |
| 19 | 19 | } |
| 20 | 20 | |
@@ -26,38 +26,38 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | public function test2() |
| 28 | 28 | { |
| 29 | - if ($str{0}) { |
|
| 30 | - $chr = $str{0}; |
|
| 31 | - } |
|
| 29 | + if ($str{0}) { |
|
| 30 | + $chr = $str{0}; |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - if (!class_exists($class_name)) { |
|
| 34 | - echo $error; |
|
| 35 | - } |
|
| 36 | - $this->{$property} =& new $class_name($this->db_index); |
|
| 37 | - $this->modules[$module] =& $this->{$property}; |
|
| 33 | + if (!class_exists($class_name)) { |
|
| 34 | + echo $error; |
|
| 35 | + } |
|
| 36 | + $this->{$property} =& new $class_name($this->db_index); |
|
| 37 | + $this->modules[$module] =& $this->{$property}; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | foreach ($elements as $element) { |
| 41 | - if ($something) { |
|
| 42 | - // Do IF. |
|
| 43 | - } else if ($somethingElse) { |
|
| 44 | - // Do ELSE. |
|
| 45 | - } |
|
| 41 | + if ($something) { |
|
| 42 | + // Do IF. |
|
| 43 | + } else if ($somethingElse) { |
|
| 44 | + // Do ELSE. |
|
| 45 | + } |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | if ($token['code'] === T_COMMENT |
| 49 | - && $multiLineComment === false |
|
| 50 | - && (substr($token['content'], 0, 2) === '//' |
|
| 51 | - || $token['content']{0} === '#') |
|
| 49 | + && $multiLineComment === false |
|
| 50 | + && (substr($token['content'], 0, 2) === '//' |
|
| 51 | + || $token['content']{0} === '#') |
|
| 52 | 52 | ) { |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | switch ($blah) { |
| 56 | - case 'one': |
|
| 57 | - echo 'one'; |
|
| 58 | - break; |
|
| 59 | - default: |
|
| 60 | - echo 'another'; |
|
| 56 | + case 'one': |
|
| 57 | + echo 'one'; |
|
| 58 | + break; |
|
| 59 | + default: |
|
| 60 | + echo 'another'; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | ?> |
@@ -75,33 +75,33 @@ discard block |
||
| 75 | 75 | </body> |
| 76 | 76 | |
| 77 | 77 | <?php |
| 78 | - if ($foo) { |
|
| 79 | - ?> |
|
| 78 | + if ($foo) { |
|
| 79 | + ?> |
|
| 80 | 80 | <?php } ?> |
| 81 | 81 | |
| 82 | 82 | <?php |
| 83 | - if ($foo) { |
|
| 84 | - ?> |
|
| 83 | + if ($foo) { |
|
| 84 | + ?> |
|
| 85 | 85 | <?php } ?> |
| 86 | 86 | |
| 87 | 87 | <?php |
| 88 | - if ($foo) { |
|
| 89 | - ?> |
|
| 88 | + if ($foo) { |
|
| 89 | + ?> |
|
| 90 | 90 | <?php } ?> |
| 91 | 91 | |
| 92 | 92 | <?php |
| 93 | 93 | public function foo() |
| 94 | 94 | { |
| 95 | - $foo('some |
|
| 95 | + $foo('some |
|
| 96 | 96 | long description', function () { |
| 97 | - }); |
|
| 97 | + }); |
|
| 98 | 98 | |
| 99 | - $foo('some |
|
| 99 | + $foo('some |
|
| 100 | 100 | long |
| 101 | 101 | description', function () { |
| 102 | 102 | }); |
| 103 | 103 | |
| 104 | - $foo( |
|
| 104 | + $foo( |
|
| 105 | 105 | 'bad indent here leads to bad indent for closer', function () { |
| 106 | 106 | }); |
| 107 | 107 | } |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | $match = match ($test) { 1 => 'a', 2 => 'b' }; |
| 112 | 112 | |
| 113 | 113 | $match = match ($test) { |
| 114 | - 1 => 'a', |
|
| 115 | - 2 => 'b' |
|
| 116 | - }; |
|
| 114 | + 1 => 'a', |
|
| 115 | + 2 => 'b' |
|
| 116 | + }; |
|
| 117 | 117 | |
| 118 | 118 | ?> |
| 119 | 119 | <?php if ($someConditional) : ?> |
@@ -57,16 +57,16 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | switch ($blah) { |
| 60 | - case 'one': |
|
| 61 | - if ($blah) { |
|
| 62 | - // There are no spaces before break. |
|
| 63 | - } |
|
| 64 | - break; |
|
| 65 | - |
|
| 66 | - default: |
|
| 67 | - if ($blah) { |
|
| 68 | - // Code here. |
|
| 69 | - } |
|
| 60 | + case 'one': |
|
| 61 | + if ($blah) { |
|
| 62 | + // There are no spaces before break. |
|
| 63 | + } |
|
| 64 | + break; |
|
| 65 | + |
|
| 66 | + default: |
|
| 67 | + if ($blah) { |
|
| 68 | + // Code here. |
|
| 69 | + } |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | foreach ($blah as $var) { |
@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | if ($one) { |
| 20 | -} else ($two) { |
|
| 20 | +} else { |
|
| 21 | + ($two) { |
|
| 21 | 22 | } else if ($three) { |
| 22 | 23 | } elseif ($four) { |
| 23 | 24 | } |
@@ -48,6 +49,7 @@ discard block |
||
| 48 | 49 | // There are no spaces before break. |
| 49 | 50 | } |
| 50 | 51 | break; |
| 52 | +} |
|
| 51 | 53 | |
| 52 | 54 | default: |
| 53 | 55 | if ($blah) { |
@@ -158,8 +160,7 @@ discard block |
||
| 158 | 160 | } |
| 159 | 161 | |
| 160 | 162 | if ($one) { |
| 161 | -} |
|
| 162 | -elseif ($two) { |
|
| 163 | +} elseif ($two) { |
|
| 163 | 164 | } |
| 164 | 165 | // else if something |
| 165 | 166 | else if ($three) { |
@@ -193,11 +194,9 @@ discard block |
||
| 193 | 194 | |
| 194 | 195 | try { |
| 195 | 196 | // Something |
| 196 | -} |
|
| 197 | -catch (Exception $e) { |
|
| 197 | +} catch (Exception $e) { |
|
| 198 | 198 | // Something |
| 199 | -} |
|
| 200 | -finally { |
|
| 199 | +} finally { |
|
| 201 | 200 | // Something |
| 202 | 201 | } |
| 203 | 202 | |
@@ -4,16 +4,16 @@ discard block |
||
| 4 | 4 | foreach ($this as $that) { |
| 5 | 5 | } |
| 6 | 6 | while (true) { |
| 7 | - for ($i = 0; $i < 10; $i++) { |
|
| 8 | - } |
|
| 9 | - if ($something) { |
|
| 10 | - } |
|
| 7 | + for ($i = 0; $i < 10; $i++) { |
|
| 8 | + } |
|
| 9 | + if ($something) { |
|
| 10 | + } |
|
| 11 | 11 | |
| 12 | - foreach ($this as $that) { |
|
| 13 | - do { |
|
| 14 | - } while (true); |
|
| 12 | + foreach ($this as $that) { |
|
| 13 | + do { |
|
| 14 | + } while (true); |
|
| 15 | 15 | |
| 16 | - } |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | if ($one) { |
@@ -31,110 +31,110 @@ discard block |
||
| 31 | 31 | <tr> |
| 32 | 32 | <td align="center" valign="center"> |
| 33 | 33 | <?php |
| 34 | - foreach ($this->children as $child) { |
|
| 35 | - // There should be no error after this |
|
| 36 | - // foreach, because it is followed by a |
|
| 37 | - // close PHP tag. |
|
| 38 | - } |
|
| 39 | - ?> |
|
| 34 | + foreach ($this->children as $child) { |
|
| 35 | + // There should be no error after this |
|
| 36 | + // foreach, because it is followed by a |
|
| 37 | + // close PHP tag. |
|
| 38 | + } |
|
| 39 | + ?> |
|
| 40 | 40 | </td> |
| 41 | 41 | </tr> |
| 42 | 42 | </table> |
| 43 | 43 | <?php |
| 44 | 44 | |
| 45 | 45 | switch ($blah) { |
| 46 | - case 'one': |
|
| 47 | - if ($blah) { |
|
| 48 | - // There are no spaces before break. |
|
| 49 | - } |
|
| 50 | - break; |
|
| 51 | - |
|
| 52 | - default: |
|
| 53 | - if ($blah) { |
|
| 54 | - // There are no spaces before break. |
|
| 55 | - } |
|
| 56 | - break; |
|
| 46 | + case 'one': |
|
| 47 | + if ($blah) { |
|
| 48 | + // There are no spaces before break. |
|
| 49 | + } |
|
| 50 | + break; |
|
| 51 | + |
|
| 52 | + default: |
|
| 53 | + if ($blah) { |
|
| 54 | + // There are no spaces before break. |
|
| 55 | + } |
|
| 56 | + break; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | switch ($blah) { |
| 60 | - case 'one': |
|
| 61 | - if ($blah) { |
|
| 62 | - // There are no spaces before break. |
|
| 63 | - } |
|
| 64 | - break; |
|
| 65 | - |
|
| 66 | - default: |
|
| 67 | - if ($blah) { |
|
| 68 | - // Code here. |
|
| 69 | - } |
|
| 60 | + case 'one': |
|
| 61 | + if ($blah) { |
|
| 62 | + // There are no spaces before break. |
|
| 63 | + } |
|
| 64 | + break; |
|
| 65 | + |
|
| 66 | + default: |
|
| 67 | + if ($blah) { |
|
| 68 | + // Code here. |
|
| 69 | + } |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | foreach ($blah as $var) { |
| 73 | - if ($blah) { |
|
| 74 | - } |
|
| 75 | - break; |
|
| 73 | + if ($blah) { |
|
| 74 | + } |
|
| 75 | + break; |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | while (true) { |
| 79 | - for ($i = 0; $i < 10; $i++) { |
|
| 79 | + for ($i = 0; $i < 10; $i++) { |
|
| 80 | 80 | |
| 81 | - if ($something) { |
|
| 82 | - } |
|
| 81 | + if ($something) { |
|
| 82 | + } |
|
| 83 | 83 | |
| 84 | - } |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | - foreach ($this as $that) { |
|
| 87 | - do { |
|
| 86 | + foreach ($this as $that) { |
|
| 87 | + do { |
|
| 88 | 88 | |
| 89 | - echo $i; |
|
| 90 | - } while (true); |
|
| 91 | - } |
|
| 89 | + echo $i; |
|
| 90 | + } while (true); |
|
| 91 | + } |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | function myFunction() |
| 95 | 95 | { |
| 96 | - if ($blah) { |
|
| 97 | - } |
|
| 96 | + if ($blah) { |
|
| 97 | + } |
|
| 98 | 98 | |
| 99 | 99 | }//end myFunction() |
| 100 | 100 | |
| 101 | 101 | foreach ($this->children as $child) { |
| 102 | - echo $child; |
|
| 102 | + echo $child; |
|
| 103 | 103 | |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | if ($defaultPageDesign === 0 |
| 107 | - && $defaultCascade === TRUE |
|
| 108 | - && $defaultChildDesign === 0 |
|
| 107 | + && $defaultCascade === TRUE |
|
| 108 | + && $defaultChildDesign === 0 |
|
| 109 | 109 | ) { |
| 110 | - $settingsUpdated = FALSE; |
|
| 110 | + $settingsUpdated = FALSE; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | foreach ( $blah as $var ) { |
| 114 | - if ( $blah ) { |
|
| 115 | - } |
|
| 114 | + if ( $blah ) { |
|
| 115 | + } |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | if ( |
| 119 | - $defaultPageDesign === 0 |
|
| 120 | - && $defaultCascade === TRUE |
|
| 121 | - && $defaultChildDesign === 0 |
|
| 119 | + $defaultPageDesign === 0 |
|
| 120 | + && $defaultCascade === TRUE |
|
| 121 | + && $defaultChildDesign === 0 |
|
| 122 | 122 | ) { |
| 123 | - $settingsUpdated = FALSE; |
|
| 123 | + $settingsUpdated = FALSE; |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $moo = 'blar'; |
| 127 | 127 | switch ($moo) |
| 128 | 128 | { |
| 129 | - case 'blar': |
|
| 130 | - if ($moo === 'blar2') { |
|
| 131 | - $moo = 'blar' |
|
| 132 | - } |
|
| 133 | - return $moo; |
|
| 134 | - |
|
| 135 | - default: |
|
| 136 | - $moo = 'moo'; |
|
| 137 | - break; |
|
| 129 | + case 'blar': |
|
| 130 | + if ($moo === 'blar2') { |
|
| 131 | + $moo = 'blar' |
|
| 132 | + } |
|
| 133 | + return $moo; |
|
| 134 | + |
|
| 135 | + default: |
|
| 136 | + $moo = 'moo'; |
|
| 137 | + break; |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | do { |
@@ -142,18 +142,18 @@ discard block |
||
| 142 | 142 | while (true); |
| 143 | 143 | |
| 144 | 144 | try { |
| 145 | - // Something |
|
| 145 | + // Something |
|
| 146 | 146 | } catch (Exception $e) { |
| 147 | - // Something |
|
| 147 | + // Something |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | try { |
| 151 | 151 | |
| 152 | - // Something |
|
| 152 | + // Something |
|
| 153 | 153 | |
| 154 | 154 | } catch (Exception $e) { |
| 155 | 155 | |
| 156 | - // Something |
|
| 156 | + // Something |
|
| 157 | 157 | |
| 158 | 158 | } |
| 159 | 159 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | do { |
| 175 | - echo 'hi'; |
|
| 175 | + echo 'hi'; |
|
| 176 | 176 | } while ( $blah ); |
| 177 | 177 | |
| 178 | 178 | if ($one) { |
@@ -183,62 +183,62 @@ discard block |
||
| 183 | 183 | |
| 184 | 184 | switch ($moo) |
| 185 | 185 | { |
| 186 | - case 'blar': |
|
| 187 | - if ($moo === 'blar2') { |
|
| 188 | - $moo = 'blar' |
|
| 189 | - } |
|
| 186 | + case 'blar': |
|
| 187 | + if ($moo === 'blar2') { |
|
| 188 | + $moo = 'blar' |
|
| 189 | + } |
|
| 190 | 190 | |
| 191 | - return $moo; |
|
| 191 | + return $moo; |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | try { |
| 195 | - // Something |
|
| 195 | + // Something |
|
| 196 | 196 | } |
| 197 | 197 | catch (Exception $e) { |
| 198 | - // Something |
|
| 198 | + // Something |
|
| 199 | 199 | } |
| 200 | 200 | finally { |
| 201 | - // Something |
|
| 201 | + // Something |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | if ($foo) { |
| 205 | 205 | |
| 206 | 206 | |
| 207 | - /** |
|
| 208 | - * Comment |
|
| 209 | - */ |
|
| 210 | - function foo() { |
|
| 211 | - // Code here |
|
| 212 | - } |
|
| 207 | + /** |
|
| 208 | + * Comment |
|
| 209 | + */ |
|
| 210 | + function foo() { |
|
| 211 | + // Code here |
|
| 212 | + } |
|
| 213 | 213 | |
| 214 | 214 | |
| 215 | - /** |
|
| 216 | - * Comment |
|
| 217 | - */ |
|
| 218 | - class bar() { |
|
| 215 | + /** |
|
| 216 | + * Comment |
|
| 217 | + */ |
|
| 218 | + class bar() { |
|
| 219 | 219 | |
| 220 | - }//end class |
|
| 220 | + }//end class |
|
| 221 | 221 | |
| 222 | 222 | |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | if (true) { // some comment goes here |
| 226 | 226 | |
| 227 | - echo 'foo'; |
|
| 227 | + echo 'foo'; |
|
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | if (true) { echo 'foo'; |
| 231 | 231 | |
| 232 | - echo 'foo'; |
|
| 232 | + echo 'foo'; |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | if ($true) { |
| 236 | - echo 'hi 2'; |
|
| 236 | + echo 'hi 2'; |
|
| 237 | 237 | }//end if |
| 238 | 238 | echo 'hi'; |
| 239 | 239 | |
| 240 | 240 | if ($true) { |
| 241 | - echo 'hi 2'; |
|
| 241 | + echo 'hi 2'; |
|
| 242 | 242 | } // phpcs:enable Standard.Category.Sniff -- for reasons. |
| 243 | 243 | echo 'hi'; |
| 244 | 244 | |
@@ -247,8 +247,8 @@ discard block |
||
| 247 | 247 | |
| 248 | 248 | <?php foreach($fieldset['Field'] as $field): |
| 249 | 249 | |
| 250 | - echo 'foo'; |
|
| 251 | - ?> |
|
| 250 | + echo 'foo'; |
|
| 251 | + ?> |
|
| 252 | 252 | <?php endforeach; ?> |
| 253 | 253 | <?php endforeach; ?> |
| 254 | 254 | |
@@ -256,8 +256,8 @@ discard block |
||
| 256 | 256 | |
| 257 | 257 | $expr = match( $foo ){ |
| 258 | 258 | |
| 259 | - 1 => 1, |
|
| 260 | - 2 => 2, |
|
| 259 | + 1 => 1, |
|
| 260 | + 2 => 2, |
|
| 261 | 261 | |
| 262 | 262 | }; |
| 263 | 263 | echo $expr; |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | foreach ($this as $that) { |
| 13 | 13 | do { |
| 14 | - } while (true); |
|
| 14 | + }while (true); |
|
| 15 | 15 | |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | do { |
| 88 | 88 | |
| 89 | 89 | echo $i; |
| 90 | - } while (true); |
|
| 90 | + }while (true); |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | $settingsUpdated = FALSE; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | -foreach ( $blah as $var ) { |
|
| 114 | - if ( $blah ) { |
|
| 113 | +foreach ($blah as $var) { |
|
| 114 | + if ($blah) { |
|
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | |
| 174 | 174 | do { |
| 175 | 175 | echo 'hi'; |
| 176 | -} while ( $blah ); |
|
| 176 | +}while ($blah); |
|
| 177 | 177 | |
| 178 | 178 | if ($one) { |
| 179 | 179 | } |
@@ -243,9 +243,9 @@ discard block |
||
| 243 | 243 | echo 'hi'; |
| 244 | 244 | |
| 245 | 245 | ?> |
| 246 | -<?php foreach($formset['Fieldset'] as $fieldset): ?> |
|
| 246 | +<?php foreach ($formset['Fieldset'] as $fieldset): ?> |
|
| 247 | 247 | |
| 248 | - <?php foreach($fieldset['Field'] as $field): |
|
| 248 | + <?php foreach ($fieldset['Field'] as $field): |
|
| 249 | 249 | |
| 250 | 250 | echo 'foo'; |
| 251 | 251 | ?> |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | <?php |
| 256 | 256 | |
| 257 | -$expr = match( $foo ){ |
|
| 257 | +$expr = match($foo){ |
|
| 258 | 258 | |
| 259 | 259 | 1 => 1, |
| 260 | 260 | 2 => 2, |
@@ -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 | - * @return array<int, int> |
|
| 25 | - */ |
|
| 26 | - public function getErrorList() |
|
| 27 | - { |
|
| 28 | - return [ |
|
| 29 | - 5 => 3, |
|
| 30 | - 7 => 3, |
|
| 31 | - 17 => 2, |
|
| 32 | - 20 => 2, |
|
| 33 | - 23 => 2, |
|
| 34 | - 24 => 2, |
|
| 35 | - 30 => 1, |
|
| 36 | - 31 => 2, |
|
| 37 | - ]; |
|
| 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 | + * @return array<int, int> |
|
| 25 | + */ |
|
| 26 | + public function getErrorList() |
|
| 27 | + { |
|
| 28 | + return [ |
|
| 29 | + 5 => 3, |
|
| 30 | + 7 => 3, |
|
| 31 | + 17 => 2, |
|
| 32 | + 20 => 2, |
|
| 33 | + 23 => 2, |
|
| 34 | + 24 => 2, |
|
| 35 | + 30 => 1, |
|
| 36 | + 31 => 2, |
|
| 37 | + ]; |
|
| 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 |
@@ -25,7 +25,7 @@ |
||
| 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 'ArrayDeclarationUnitTest.1.inc': |
@@ -15,222 +15,222 @@ |
||
| 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 'ArrayDeclarationUnitTest.1.inc': |
|
| 32 | - return [ |
|
| 33 | - 2 => 1, |
|
| 34 | - 8 => 2, |
|
| 35 | - 10 => 2, |
|
| 36 | - 22 => 1, |
|
| 37 | - 23 => 2, |
|
| 38 | - 24 => 2, |
|
| 39 | - 25 => 1, |
|
| 40 | - 31 => 2, |
|
| 41 | - 35 => 1, |
|
| 42 | - 36 => 2, |
|
| 43 | - 41 => 1, |
|
| 44 | - 46 => 1, |
|
| 45 | - 47 => 1, |
|
| 46 | - 50 => 1, |
|
| 47 | - 51 => 1, |
|
| 48 | - 53 => 1, |
|
| 49 | - 56 => 1, |
|
| 50 | - 58 => 1, |
|
| 51 | - 61 => 1, |
|
| 52 | - 62 => 1, |
|
| 53 | - 63 => 1, |
|
| 54 | - 64 => 1, |
|
| 55 | - 65 => 1, |
|
| 56 | - 66 => 3, |
|
| 57 | - 70 => 1, |
|
| 58 | - 76 => 2, |
|
| 59 | - 77 => 1, |
|
| 60 | - 78 => 7, |
|
| 61 | - 79 => 2, |
|
| 62 | - 81 => 2, |
|
| 63 | - 82 => 4, |
|
| 64 | - 87 => 1, |
|
| 65 | - 88 => 1, |
|
| 66 | - 92 => 1, |
|
| 67 | - 97 => 1, |
|
| 68 | - 100 => 1, |
|
| 69 | - 101 => 1, |
|
| 70 | - 102 => 1, |
|
| 71 | - 105 => 1, |
|
| 72 | - 106 => 1, |
|
| 73 | - 107 => 1, |
|
| 74 | - 125 => 1, |
|
| 75 | - 126 => 1, |
|
| 76 | - 141 => 1, |
|
| 77 | - 144 => 1, |
|
| 78 | - 146 => 1, |
|
| 79 | - 148 => 1, |
|
| 80 | - 151 => 1, |
|
| 81 | - 157 => 1, |
|
| 82 | - 173 => 1, |
|
| 83 | - 174 => 3, |
|
| 84 | - 179 => 1, |
|
| 85 | - 182 => 1, |
|
| 86 | - 188 => 1, |
|
| 87 | - 207 => 1, |
|
| 88 | - 212 => 2, |
|
| 89 | - 214 => 1, |
|
| 90 | - 218 => 2, |
|
| 91 | - 219 => 2, |
|
| 92 | - 223 => 1, |
|
| 93 | - 255 => 1, |
|
| 94 | - 294 => 1, |
|
| 95 | - 295 => 1, |
|
| 96 | - 296 => 1, |
|
| 97 | - 311 => 1, |
|
| 98 | - 317 => 1, |
|
| 99 | - 339 => 2, |
|
| 100 | - 348 => 2, |
|
| 101 | - 352 => 2, |
|
| 102 | - 355 => 3, |
|
| 103 | - 358 => 3, |
|
| 104 | - 359 => 2, |
|
| 105 | - 360 => 1, |
|
| 106 | - 362 => 1, |
|
| 107 | - 363 => 2, |
|
| 108 | - 364 => 1, |
|
| 109 | - 365 => 2, |
|
| 110 | - 366 => 2, |
|
| 111 | - 367 => 2, |
|
| 112 | - 368 => 2, |
|
| 113 | - 369 => 1, |
|
| 114 | - 370 => 1, |
|
| 115 | - 383 => 1, |
|
| 116 | - 394 => 1, |
|
| 117 | - 400 => 1, |
|
| 118 | - 406 => 1, |
|
| 119 | - 441 => 1, |
|
| 120 | - 444 => 2, |
|
| 121 | - 445 => 2, |
|
| 122 | - 447 => 2, |
|
| 123 | - 448 => 3, |
|
| 124 | - 467 => 1, |
|
| 125 | - 471 => 1, |
|
| 126 | - 472 => 1, |
|
| 127 | - ]; |
|
| 128 | - case 'ArrayDeclarationUnitTest.2.inc': |
|
| 129 | - return [ |
|
| 130 | - 2 => 1, |
|
| 131 | - 10 => 1, |
|
| 132 | - 23 => 2, |
|
| 133 | - 24 => 2, |
|
| 134 | - 25 => 1, |
|
| 135 | - 31 => 2, |
|
| 136 | - 36 => 2, |
|
| 137 | - 41 => 1, |
|
| 138 | - 46 => 1, |
|
| 139 | - 47 => 1, |
|
| 140 | - 51 => 1, |
|
| 141 | - 53 => 1, |
|
| 142 | - 56 => 1, |
|
| 143 | - 61 => 1, |
|
| 144 | - 63 => 1, |
|
| 145 | - 64 => 1, |
|
| 146 | - 65 => 1, |
|
| 147 | - 66 => 2, |
|
| 148 | - 70 => 1, |
|
| 149 | - 76 => 1, |
|
| 150 | - 77 => 1, |
|
| 151 | - 78 => 7, |
|
| 152 | - 79 => 2, |
|
| 153 | - 81 => 2, |
|
| 154 | - 82 => 4, |
|
| 155 | - 87 => 1, |
|
| 156 | - 88 => 1, |
|
| 157 | - 92 => 1, |
|
| 158 | - 97 => 1, |
|
| 159 | - 100 => 1, |
|
| 160 | - 101 => 1, |
|
| 161 | - 102 => 1, |
|
| 162 | - 105 => 1, |
|
| 163 | - 106 => 1, |
|
| 164 | - 107 => 1, |
|
| 165 | - 125 => 1, |
|
| 166 | - 126 => 1, |
|
| 167 | - 141 => 1, |
|
| 168 | - 144 => 1, |
|
| 169 | - 146 => 1, |
|
| 170 | - 148 => 1, |
|
| 171 | - 151 => 1, |
|
| 172 | - 157 => 1, |
|
| 173 | - 173 => 1, |
|
| 174 | - 174 => 3, |
|
| 175 | - 179 => 1, |
|
| 176 | - 190 => 1, |
|
| 177 | - 191 => 1, |
|
| 178 | - 192 => 1, |
|
| 179 | - 207 => 1, |
|
| 180 | - 210 => 1, |
|
| 181 | - 211 => 1, |
|
| 182 | - 215 => 1, |
|
| 183 | - 247 => 1, |
|
| 184 | - 286 => 1, |
|
| 185 | - 287 => 1, |
|
| 186 | - 288 => 1, |
|
| 187 | - 303 => 1, |
|
| 188 | - 309 => 1, |
|
| 189 | - 331 => 2, |
|
| 190 | - 345 => 3, |
|
| 191 | - 348 => 3, |
|
| 192 | - 349 => 2, |
|
| 193 | - 350 => 1, |
|
| 194 | - 352 => 2, |
|
| 195 | - 353 => 2, |
|
| 196 | - 354 => 2, |
|
| 197 | - 355 => 2, |
|
| 198 | - 356 => 2, |
|
| 199 | - 357 => 1, |
|
| 200 | - 358 => 1, |
|
| 201 | - 372 => 1, |
|
| 202 | - 383 => 1, |
|
| 203 | - 389 => 1, |
|
| 204 | - 395 => 1, |
|
| 205 | - 430 => 1, |
|
| 206 | - 433 => 2, |
|
| 207 | - 434 => 2, |
|
| 208 | - 436 => 2, |
|
| 209 | - 437 => 3, |
|
| 210 | - 456 => 1, |
|
| 211 | - 460 => 1, |
|
| 212 | - 461 => 1, |
|
| 213 | - ]; |
|
| 214 | - default: |
|
| 215 | - return []; |
|
| 216 | - }//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 'ArrayDeclarationUnitTest.1.inc': |
|
| 32 | + return [ |
|
| 33 | + 2 => 1, |
|
| 34 | + 8 => 2, |
|
| 35 | + 10 => 2, |
|
| 36 | + 22 => 1, |
|
| 37 | + 23 => 2, |
|
| 38 | + 24 => 2, |
|
| 39 | + 25 => 1, |
|
| 40 | + 31 => 2, |
|
| 41 | + 35 => 1, |
|
| 42 | + 36 => 2, |
|
| 43 | + 41 => 1, |
|
| 44 | + 46 => 1, |
|
| 45 | + 47 => 1, |
|
| 46 | + 50 => 1, |
|
| 47 | + 51 => 1, |
|
| 48 | + 53 => 1, |
|
| 49 | + 56 => 1, |
|
| 50 | + 58 => 1, |
|
| 51 | + 61 => 1, |
|
| 52 | + 62 => 1, |
|
| 53 | + 63 => 1, |
|
| 54 | + 64 => 1, |
|
| 55 | + 65 => 1, |
|
| 56 | + 66 => 3, |
|
| 57 | + 70 => 1, |
|
| 58 | + 76 => 2, |
|
| 59 | + 77 => 1, |
|
| 60 | + 78 => 7, |
|
| 61 | + 79 => 2, |
|
| 62 | + 81 => 2, |
|
| 63 | + 82 => 4, |
|
| 64 | + 87 => 1, |
|
| 65 | + 88 => 1, |
|
| 66 | + 92 => 1, |
|
| 67 | + 97 => 1, |
|
| 68 | + 100 => 1, |
|
| 69 | + 101 => 1, |
|
| 70 | + 102 => 1, |
|
| 71 | + 105 => 1, |
|
| 72 | + 106 => 1, |
|
| 73 | + 107 => 1, |
|
| 74 | + 125 => 1, |
|
| 75 | + 126 => 1, |
|
| 76 | + 141 => 1, |
|
| 77 | + 144 => 1, |
|
| 78 | + 146 => 1, |
|
| 79 | + 148 => 1, |
|
| 80 | + 151 => 1, |
|
| 81 | + 157 => 1, |
|
| 82 | + 173 => 1, |
|
| 83 | + 174 => 3, |
|
| 84 | + 179 => 1, |
|
| 85 | + 182 => 1, |
|
| 86 | + 188 => 1, |
|
| 87 | + 207 => 1, |
|
| 88 | + 212 => 2, |
|
| 89 | + 214 => 1, |
|
| 90 | + 218 => 2, |
|
| 91 | + 219 => 2, |
|
| 92 | + 223 => 1, |
|
| 93 | + 255 => 1, |
|
| 94 | + 294 => 1, |
|
| 95 | + 295 => 1, |
|
| 96 | + 296 => 1, |
|
| 97 | + 311 => 1, |
|
| 98 | + 317 => 1, |
|
| 99 | + 339 => 2, |
|
| 100 | + 348 => 2, |
|
| 101 | + 352 => 2, |
|
| 102 | + 355 => 3, |
|
| 103 | + 358 => 3, |
|
| 104 | + 359 => 2, |
|
| 105 | + 360 => 1, |
|
| 106 | + 362 => 1, |
|
| 107 | + 363 => 2, |
|
| 108 | + 364 => 1, |
|
| 109 | + 365 => 2, |
|
| 110 | + 366 => 2, |
|
| 111 | + 367 => 2, |
|
| 112 | + 368 => 2, |
|
| 113 | + 369 => 1, |
|
| 114 | + 370 => 1, |
|
| 115 | + 383 => 1, |
|
| 116 | + 394 => 1, |
|
| 117 | + 400 => 1, |
|
| 118 | + 406 => 1, |
|
| 119 | + 441 => 1, |
|
| 120 | + 444 => 2, |
|
| 121 | + 445 => 2, |
|
| 122 | + 447 => 2, |
|
| 123 | + 448 => 3, |
|
| 124 | + 467 => 1, |
|
| 125 | + 471 => 1, |
|
| 126 | + 472 => 1, |
|
| 127 | + ]; |
|
| 128 | + case 'ArrayDeclarationUnitTest.2.inc': |
|
| 129 | + return [ |
|
| 130 | + 2 => 1, |
|
| 131 | + 10 => 1, |
|
| 132 | + 23 => 2, |
|
| 133 | + 24 => 2, |
|
| 134 | + 25 => 1, |
|
| 135 | + 31 => 2, |
|
| 136 | + 36 => 2, |
|
| 137 | + 41 => 1, |
|
| 138 | + 46 => 1, |
|
| 139 | + 47 => 1, |
|
| 140 | + 51 => 1, |
|
| 141 | + 53 => 1, |
|
| 142 | + 56 => 1, |
|
| 143 | + 61 => 1, |
|
| 144 | + 63 => 1, |
|
| 145 | + 64 => 1, |
|
| 146 | + 65 => 1, |
|
| 147 | + 66 => 2, |
|
| 148 | + 70 => 1, |
|
| 149 | + 76 => 1, |
|
| 150 | + 77 => 1, |
|
| 151 | + 78 => 7, |
|
| 152 | + 79 => 2, |
|
| 153 | + 81 => 2, |
|
| 154 | + 82 => 4, |
|
| 155 | + 87 => 1, |
|
| 156 | + 88 => 1, |
|
| 157 | + 92 => 1, |
|
| 158 | + 97 => 1, |
|
| 159 | + 100 => 1, |
|
| 160 | + 101 => 1, |
|
| 161 | + 102 => 1, |
|
| 162 | + 105 => 1, |
|
| 163 | + 106 => 1, |
|
| 164 | + 107 => 1, |
|
| 165 | + 125 => 1, |
|
| 166 | + 126 => 1, |
|
| 167 | + 141 => 1, |
|
| 168 | + 144 => 1, |
|
| 169 | + 146 => 1, |
|
| 170 | + 148 => 1, |
|
| 171 | + 151 => 1, |
|
| 172 | + 157 => 1, |
|
| 173 | + 173 => 1, |
|
| 174 | + 174 => 3, |
|
| 175 | + 179 => 1, |
|
| 176 | + 190 => 1, |
|
| 177 | + 191 => 1, |
|
| 178 | + 192 => 1, |
|
| 179 | + 207 => 1, |
|
| 180 | + 210 => 1, |
|
| 181 | + 211 => 1, |
|
| 182 | + 215 => 1, |
|
| 183 | + 247 => 1, |
|
| 184 | + 286 => 1, |
|
| 185 | + 287 => 1, |
|
| 186 | + 288 => 1, |
|
| 187 | + 303 => 1, |
|
| 188 | + 309 => 1, |
|
| 189 | + 331 => 2, |
|
| 190 | + 345 => 3, |
|
| 191 | + 348 => 3, |
|
| 192 | + 349 => 2, |
|
| 193 | + 350 => 1, |
|
| 194 | + 352 => 2, |
|
| 195 | + 353 => 2, |
|
| 196 | + 354 => 2, |
|
| 197 | + 355 => 2, |
|
| 198 | + 356 => 2, |
|
| 199 | + 357 => 1, |
|
| 200 | + 358 => 1, |
|
| 201 | + 372 => 1, |
|
| 202 | + 383 => 1, |
|
| 203 | + 389 => 1, |
|
| 204 | + 395 => 1, |
|
| 205 | + 430 => 1, |
|
| 206 | + 433 => 2, |
|
| 207 | + 434 => 2, |
|
| 208 | + 436 => 2, |
|
| 209 | + 437 => 3, |
|
| 210 | + 456 => 1, |
|
| 211 | + 460 => 1, |
|
| 212 | + 461 => 1, |
|
| 213 | + ]; |
|
| 214 | + default: |
|
| 215 | + return []; |
|
| 216 | + }//end switch |
|
| 217 | 217 | |
| 218 | - }//end getErrorList() |
|
| 218 | + }//end getErrorList() |
|
| 219 | 219 | |
| 220 | 220 | |
| 221 | - /** |
|
| 222 | - * Returns the lines where warnings should occur. |
|
| 223 | - * |
|
| 224 | - * The key of the array should represent the line number and the value |
|
| 225 | - * should represent the number of warnings that should occur on that line. |
|
| 226 | - * |
|
| 227 | - * @return array<int, int> |
|
| 228 | - */ |
|
| 229 | - public function getWarningList() |
|
| 230 | - { |
|
| 231 | - return []; |
|
| 221 | + /** |
|
| 222 | + * Returns the lines where warnings should occur. |
|
| 223 | + * |
|
| 224 | + * The key of the array should represent the line number and the value |
|
| 225 | + * should represent the number of warnings that should occur on that line. |
|
| 226 | + * |
|
| 227 | + * @return array<int, int> |
|
| 228 | + */ |
|
| 229 | + public function getWarningList() |
|
| 230 | + { |
|
| 231 | + return []; |
|
| 232 | 232 | |
| 233 | - }//end getWarningList() |
|
| 233 | + }//end getWarningList() |
|
| 234 | 234 | |
| 235 | 235 | |
| 236 | 236 | }//end class |
@@ -28,191 +28,191 @@ |
||
| 28 | 28 | public function getErrorList($testFile='') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'ArrayDeclarationUnitTest.1.inc': |
|
| 32 | - return [ |
|
| 33 | - 2 => 1, |
|
| 34 | - 8 => 2, |
|
| 35 | - 10 => 2, |
|
| 36 | - 22 => 1, |
|
| 37 | - 23 => 2, |
|
| 38 | - 24 => 2, |
|
| 39 | - 25 => 1, |
|
| 40 | - 31 => 2, |
|
| 41 | - 35 => 1, |
|
| 42 | - 36 => 2, |
|
| 43 | - 41 => 1, |
|
| 44 | - 46 => 1, |
|
| 45 | - 47 => 1, |
|
| 46 | - 50 => 1, |
|
| 47 | - 51 => 1, |
|
| 48 | - 53 => 1, |
|
| 49 | - 56 => 1, |
|
| 50 | - 58 => 1, |
|
| 51 | - 61 => 1, |
|
| 52 | - 62 => 1, |
|
| 53 | - 63 => 1, |
|
| 54 | - 64 => 1, |
|
| 55 | - 65 => 1, |
|
| 56 | - 66 => 3, |
|
| 57 | - 70 => 1, |
|
| 58 | - 76 => 2, |
|
| 59 | - 77 => 1, |
|
| 60 | - 78 => 7, |
|
| 61 | - 79 => 2, |
|
| 62 | - 81 => 2, |
|
| 63 | - 82 => 4, |
|
| 64 | - 87 => 1, |
|
| 65 | - 88 => 1, |
|
| 66 | - 92 => 1, |
|
| 67 | - 97 => 1, |
|
| 68 | - 100 => 1, |
|
| 69 | - 101 => 1, |
|
| 70 | - 102 => 1, |
|
| 71 | - 105 => 1, |
|
| 72 | - 106 => 1, |
|
| 73 | - 107 => 1, |
|
| 74 | - 125 => 1, |
|
| 75 | - 126 => 1, |
|
| 76 | - 141 => 1, |
|
| 77 | - 144 => 1, |
|
| 78 | - 146 => 1, |
|
| 79 | - 148 => 1, |
|
| 80 | - 151 => 1, |
|
| 81 | - 157 => 1, |
|
| 82 | - 173 => 1, |
|
| 83 | - 174 => 3, |
|
| 84 | - 179 => 1, |
|
| 85 | - 182 => 1, |
|
| 86 | - 188 => 1, |
|
| 87 | - 207 => 1, |
|
| 88 | - 212 => 2, |
|
| 89 | - 214 => 1, |
|
| 90 | - 218 => 2, |
|
| 91 | - 219 => 2, |
|
| 92 | - 223 => 1, |
|
| 93 | - 255 => 1, |
|
| 94 | - 294 => 1, |
|
| 95 | - 295 => 1, |
|
| 96 | - 296 => 1, |
|
| 97 | - 311 => 1, |
|
| 98 | - 317 => 1, |
|
| 99 | - 339 => 2, |
|
| 100 | - 348 => 2, |
|
| 101 | - 352 => 2, |
|
| 102 | - 355 => 3, |
|
| 103 | - 358 => 3, |
|
| 104 | - 359 => 2, |
|
| 105 | - 360 => 1, |
|
| 106 | - 362 => 1, |
|
| 107 | - 363 => 2, |
|
| 108 | - 364 => 1, |
|
| 109 | - 365 => 2, |
|
| 110 | - 366 => 2, |
|
| 111 | - 367 => 2, |
|
| 112 | - 368 => 2, |
|
| 113 | - 369 => 1, |
|
| 114 | - 370 => 1, |
|
| 115 | - 383 => 1, |
|
| 116 | - 394 => 1, |
|
| 117 | - 400 => 1, |
|
| 118 | - 406 => 1, |
|
| 119 | - 441 => 1, |
|
| 120 | - 444 => 2, |
|
| 121 | - 445 => 2, |
|
| 122 | - 447 => 2, |
|
| 123 | - 448 => 3, |
|
| 124 | - 467 => 1, |
|
| 125 | - 471 => 1, |
|
| 126 | - 472 => 1, |
|
| 127 | - ]; |
|
| 128 | - case 'ArrayDeclarationUnitTest.2.inc': |
|
| 129 | - return [ |
|
| 130 | - 2 => 1, |
|
| 131 | - 10 => 1, |
|
| 132 | - 23 => 2, |
|
| 133 | - 24 => 2, |
|
| 134 | - 25 => 1, |
|
| 135 | - 31 => 2, |
|
| 136 | - 36 => 2, |
|
| 137 | - 41 => 1, |
|
| 138 | - 46 => 1, |
|
| 139 | - 47 => 1, |
|
| 140 | - 51 => 1, |
|
| 141 | - 53 => 1, |
|
| 142 | - 56 => 1, |
|
| 143 | - 61 => 1, |
|
| 144 | - 63 => 1, |
|
| 145 | - 64 => 1, |
|
| 146 | - 65 => 1, |
|
| 147 | - 66 => 2, |
|
| 148 | - 70 => 1, |
|
| 149 | - 76 => 1, |
|
| 150 | - 77 => 1, |
|
| 151 | - 78 => 7, |
|
| 152 | - 79 => 2, |
|
| 153 | - 81 => 2, |
|
| 154 | - 82 => 4, |
|
| 155 | - 87 => 1, |
|
| 156 | - 88 => 1, |
|
| 157 | - 92 => 1, |
|
| 158 | - 97 => 1, |
|
| 159 | - 100 => 1, |
|
| 160 | - 101 => 1, |
|
| 161 | - 102 => 1, |
|
| 162 | - 105 => 1, |
|
| 163 | - 106 => 1, |
|
| 164 | - 107 => 1, |
|
| 165 | - 125 => 1, |
|
| 166 | - 126 => 1, |
|
| 167 | - 141 => 1, |
|
| 168 | - 144 => 1, |
|
| 169 | - 146 => 1, |
|
| 170 | - 148 => 1, |
|
| 171 | - 151 => 1, |
|
| 172 | - 157 => 1, |
|
| 173 | - 173 => 1, |
|
| 174 | - 174 => 3, |
|
| 175 | - 179 => 1, |
|
| 176 | - 190 => 1, |
|
| 177 | - 191 => 1, |
|
| 178 | - 192 => 1, |
|
| 179 | - 207 => 1, |
|
| 180 | - 210 => 1, |
|
| 181 | - 211 => 1, |
|
| 182 | - 215 => 1, |
|
| 183 | - 247 => 1, |
|
| 184 | - 286 => 1, |
|
| 185 | - 287 => 1, |
|
| 186 | - 288 => 1, |
|
| 187 | - 303 => 1, |
|
| 188 | - 309 => 1, |
|
| 189 | - 331 => 2, |
|
| 190 | - 345 => 3, |
|
| 191 | - 348 => 3, |
|
| 192 | - 349 => 2, |
|
| 193 | - 350 => 1, |
|
| 194 | - 352 => 2, |
|
| 195 | - 353 => 2, |
|
| 196 | - 354 => 2, |
|
| 197 | - 355 => 2, |
|
| 198 | - 356 => 2, |
|
| 199 | - 357 => 1, |
|
| 200 | - 358 => 1, |
|
| 201 | - 372 => 1, |
|
| 202 | - 383 => 1, |
|
| 203 | - 389 => 1, |
|
| 204 | - 395 => 1, |
|
| 205 | - 430 => 1, |
|
| 206 | - 433 => 2, |
|
| 207 | - 434 => 2, |
|
| 208 | - 436 => 2, |
|
| 209 | - 437 => 3, |
|
| 210 | - 456 => 1, |
|
| 211 | - 460 => 1, |
|
| 212 | - 461 => 1, |
|
| 213 | - ]; |
|
| 214 | - default: |
|
| 215 | - return []; |
|
| 31 | + case 'ArrayDeclarationUnitTest.1.inc': |
|
| 32 | + return [ |
|
| 33 | + 2 => 1, |
|
| 34 | + 8 => 2, |
|
| 35 | + 10 => 2, |
|
| 36 | + 22 => 1, |
|
| 37 | + 23 => 2, |
|
| 38 | + 24 => 2, |
|
| 39 | + 25 => 1, |
|
| 40 | + 31 => 2, |
|
| 41 | + 35 => 1, |
|
| 42 | + 36 => 2, |
|
| 43 | + 41 => 1, |
|
| 44 | + 46 => 1, |
|
| 45 | + 47 => 1, |
|
| 46 | + 50 => 1, |
|
| 47 | + 51 => 1, |
|
| 48 | + 53 => 1, |
|
| 49 | + 56 => 1, |
|
| 50 | + 58 => 1, |
|
| 51 | + 61 => 1, |
|
| 52 | + 62 => 1, |
|
| 53 | + 63 => 1, |
|
| 54 | + 64 => 1, |
|
| 55 | + 65 => 1, |
|
| 56 | + 66 => 3, |
|
| 57 | + 70 => 1, |
|
| 58 | + 76 => 2, |
|
| 59 | + 77 => 1, |
|
| 60 | + 78 => 7, |
|
| 61 | + 79 => 2, |
|
| 62 | + 81 => 2, |
|
| 63 | + 82 => 4, |
|
| 64 | + 87 => 1, |
|
| 65 | + 88 => 1, |
|
| 66 | + 92 => 1, |
|
| 67 | + 97 => 1, |
|
| 68 | + 100 => 1, |
|
| 69 | + 101 => 1, |
|
| 70 | + 102 => 1, |
|
| 71 | + 105 => 1, |
|
| 72 | + 106 => 1, |
|
| 73 | + 107 => 1, |
|
| 74 | + 125 => 1, |
|
| 75 | + 126 => 1, |
|
| 76 | + 141 => 1, |
|
| 77 | + 144 => 1, |
|
| 78 | + 146 => 1, |
|
| 79 | + 148 => 1, |
|
| 80 | + 151 => 1, |
|
| 81 | + 157 => 1, |
|
| 82 | + 173 => 1, |
|
| 83 | + 174 => 3, |
|
| 84 | + 179 => 1, |
|
| 85 | + 182 => 1, |
|
| 86 | + 188 => 1, |
|
| 87 | + 207 => 1, |
|
| 88 | + 212 => 2, |
|
| 89 | + 214 => 1, |
|
| 90 | + 218 => 2, |
|
| 91 | + 219 => 2, |
|
| 92 | + 223 => 1, |
|
| 93 | + 255 => 1, |
|
| 94 | + 294 => 1, |
|
| 95 | + 295 => 1, |
|
| 96 | + 296 => 1, |
|
| 97 | + 311 => 1, |
|
| 98 | + 317 => 1, |
|
| 99 | + 339 => 2, |
|
| 100 | + 348 => 2, |
|
| 101 | + 352 => 2, |
|
| 102 | + 355 => 3, |
|
| 103 | + 358 => 3, |
|
| 104 | + 359 => 2, |
|
| 105 | + 360 => 1, |
|
| 106 | + 362 => 1, |
|
| 107 | + 363 => 2, |
|
| 108 | + 364 => 1, |
|
| 109 | + 365 => 2, |
|
| 110 | + 366 => 2, |
|
| 111 | + 367 => 2, |
|
| 112 | + 368 => 2, |
|
| 113 | + 369 => 1, |
|
| 114 | + 370 => 1, |
|
| 115 | + 383 => 1, |
|
| 116 | + 394 => 1, |
|
| 117 | + 400 => 1, |
|
| 118 | + 406 => 1, |
|
| 119 | + 441 => 1, |
|
| 120 | + 444 => 2, |
|
| 121 | + 445 => 2, |
|
| 122 | + 447 => 2, |
|
| 123 | + 448 => 3, |
|
| 124 | + 467 => 1, |
|
| 125 | + 471 => 1, |
|
| 126 | + 472 => 1, |
|
| 127 | + ]; |
|
| 128 | + case 'ArrayDeclarationUnitTest.2.inc': |
|
| 129 | + return [ |
|
| 130 | + 2 => 1, |
|
| 131 | + 10 => 1, |
|
| 132 | + 23 => 2, |
|
| 133 | + 24 => 2, |
|
| 134 | + 25 => 1, |
|
| 135 | + 31 => 2, |
|
| 136 | + 36 => 2, |
|
| 137 | + 41 => 1, |
|
| 138 | + 46 => 1, |
|
| 139 | + 47 => 1, |
|
| 140 | + 51 => 1, |
|
| 141 | + 53 => 1, |
|
| 142 | + 56 => 1, |
|
| 143 | + 61 => 1, |
|
| 144 | + 63 => 1, |
|
| 145 | + 64 => 1, |
|
| 146 | + 65 => 1, |
|
| 147 | + 66 => 2, |
|
| 148 | + 70 => 1, |
|
| 149 | + 76 => 1, |
|
| 150 | + 77 => 1, |
|
| 151 | + 78 => 7, |
|
| 152 | + 79 => 2, |
|
| 153 | + 81 => 2, |
|
| 154 | + 82 => 4, |
|
| 155 | + 87 => 1, |
|
| 156 | + 88 => 1, |
|
| 157 | + 92 => 1, |
|
| 158 | + 97 => 1, |
|
| 159 | + 100 => 1, |
|
| 160 | + 101 => 1, |
|
| 161 | + 102 => 1, |
|
| 162 | + 105 => 1, |
|
| 163 | + 106 => 1, |
|
| 164 | + 107 => 1, |
|
| 165 | + 125 => 1, |
|
| 166 | + 126 => 1, |
|
| 167 | + 141 => 1, |
|
| 168 | + 144 => 1, |
|
| 169 | + 146 => 1, |
|
| 170 | + 148 => 1, |
|
| 171 | + 151 => 1, |
|
| 172 | + 157 => 1, |
|
| 173 | + 173 => 1, |
|
| 174 | + 174 => 3, |
|
| 175 | + 179 => 1, |
|
| 176 | + 190 => 1, |
|
| 177 | + 191 => 1, |
|
| 178 | + 192 => 1, |
|
| 179 | + 207 => 1, |
|
| 180 | + 210 => 1, |
|
| 181 | + 211 => 1, |
|
| 182 | + 215 => 1, |
|
| 183 | + 247 => 1, |
|
| 184 | + 286 => 1, |
|
| 185 | + 287 => 1, |
|
| 186 | + 288 => 1, |
|
| 187 | + 303 => 1, |
|
| 188 | + 309 => 1, |
|
| 189 | + 331 => 2, |
|
| 190 | + 345 => 3, |
|
| 191 | + 348 => 3, |
|
| 192 | + 349 => 2, |
|
| 193 | + 350 => 1, |
|
| 194 | + 352 => 2, |
|
| 195 | + 353 => 2, |
|
| 196 | + 354 => 2, |
|
| 197 | + 355 => 2, |
|
| 198 | + 356 => 2, |
|
| 199 | + 357 => 1, |
|
| 200 | + 358 => 1, |
|
| 201 | + 372 => 1, |
|
| 202 | + 383 => 1, |
|
| 203 | + 389 => 1, |
|
| 204 | + 395 => 1, |
|
| 205 | + 430 => 1, |
|
| 206 | + 433 => 2, |
|
| 207 | + 434 => 2, |
|
| 208 | + 436 => 2, |
|
| 209 | + 437 => 3, |
|
| 210 | + 456 => 1, |
|
| 211 | + 460 => 1, |
|
| 212 | + 461 => 1, |
|
| 213 | + ]; |
|
| 214 | + default: |
|
| 215 | + return []; |
|
| 216 | 216 | }//end switch |
| 217 | 217 | |
| 218 | 218 | }//end getErrorList() |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | } else if ($array [ ($index + 1) ] === null) { |
| 8 | 8 | } |
| 9 | 9 | $array = [ |
| 10 | - 'foo' => 'bar', |
|
| 11 | - 'bar' => 'foo', |
|
| 10 | + 'foo' => 'bar', |
|
| 11 | + 'bar' => 'foo', |
|
| 12 | 12 | ]; |
| 13 | 13 | |
| 14 | 14 | if ($foo) {} |
@@ -2,9 +2,9 @@ discard block |
||
| 2 | 2 | $myArray['key'] = $value; |
| 3 | 3 | $myArray[/* key start */'key'] = $value; |
| 4 | 4 | $myArray[/* key start */'key'/* key end */] = $value; |
| 5 | -$myArray [ 'key' ] = $value; |
|
| 5 | +$myArray ['key'] = $value; |
|
| 6 | 6 | if ($array[($index + 1)] === true) { |
| 7 | -} else if ($array [ ($index + 1) ] === null) { |
|
| 7 | +} else if ($array [($index + 1)] === null) { |
|
| 8 | 8 | } |
| 9 | 9 | $array = [ |
| 10 | 10 | 'foo' => 'bar', |
@@ -14,18 +14,18 @@ discard block |
||
| 14 | 14 | if ($foo) {} |
| 15 | 15 | [$a, $b] = $c; |
| 16 | 16 | |
| 17 | -echo foo()[ 1 ]; |
|
| 17 | +echo foo()[1]; |
|
| 18 | 18 | |
| 19 | 19 | echo $this->addedCustomFunctions['nonce']; |
| 20 | -echo $this->deprecated_functions[ $function_name ]['version']; |
|
| 20 | +echo $this->deprecated_functions[$function_name]['version']; |
|
| 21 | 21 | |
| 22 | -echo [ 1,2,3 ][0]; |
|
| 23 | -echo [ 1,2,3 ][ 0 ]; |
|
| 24 | -echo 'PHP'[ 0 ]; |
|
| 22 | +echo [1, 2, 3][0]; |
|
| 23 | +echo [1, 2, 3][0]; |
|
| 24 | +echo 'PHP'[0]; |
|
| 25 | 25 | |
| 26 | 26 | $array = []; |
| 27 | 27 | $var = $var[$var[$var]]]; // Syntax error |
| 28 | 28 | $var = $var[$var[$var]; // Syntax error |
| 29 | 29 | |
| 30 | -$myArray[ /* key start */'key'] = $value; |
|
| 31 | -$myArray[ /* key start */'key'/* key end */ ] = $value; |
|
| 30 | +$myArray[/* key start */'key'] = $value; |
|
| 31 | +$myArray[/* key start */'key'/* key end */] = $value; |
|