@@ -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 | - 3 => 1, |
|
| 30 | - 4 => 1, |
|
| 31 | - 8 => 1, |
|
| 32 | - 10 => 1, |
|
| 33 | - ]; |
|
| 34 | - |
|
| 35 | - }//end getErrorList() |
|
| 36 | - |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * Returns the lines where warnings should occur. |
|
| 40 | - * |
|
| 41 | - * The key of the array should represent the line number and the value |
|
| 42 | - * should represent the number of warnings that should occur on that line. |
|
| 43 | - * |
|
| 44 | - * @return array<int, int> |
|
| 45 | - */ |
|
| 46 | - public function getWarningList() |
|
| 47 | - { |
|
| 48 | - return []; |
|
| 49 | - |
|
| 50 | - }//end getWarningList() |
|
| 18 | + /** |
|
| 19 | + * Returns the lines where errors should occur. |
|
| 20 | + * |
|
| 21 | + * The key of the array should represent the line number and the value |
|
| 22 | + * should represent the number of errors that should occur on that line. |
|
| 23 | + * |
|
| 24 | + * @return array<int, int> |
|
| 25 | + */ |
|
| 26 | + public function getErrorList() |
|
| 27 | + { |
|
| 28 | + return [ |
|
| 29 | + 3 => 1, |
|
| 30 | + 4 => 1, |
|
| 31 | + 8 => 1, |
|
| 32 | + 10 => 1, |
|
| 33 | + ]; |
|
| 34 | + |
|
| 35 | + }//end getErrorList() |
|
| 36 | + |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * Returns the lines where warnings should occur. |
|
| 40 | + * |
|
| 41 | + * The key of the array should represent the line number and the value |
|
| 42 | + * should represent the number of warnings that should occur on that line. |
|
| 43 | + * |
|
| 44 | + * @return array<int, int> |
|
| 45 | + */ |
|
| 46 | + public function getWarningList() |
|
| 47 | + { |
|
| 48 | + return []; |
|
| 49 | + |
|
| 50 | + }//end getWarningList() |
|
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | }//end class |
@@ -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 | - 2 => 1, |
|
| 30 | - 4 => 1, |
|
| 31 | - 6 => 1, |
|
| 32 | - 12 => 1, |
|
| 33 | - ]; |
|
| 34 | - |
|
| 35 | - }//end getErrorList() |
|
| 36 | - |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * Returns the lines where warnings should occur. |
|
| 40 | - * |
|
| 41 | - * The key of the array should represent the line number and the value |
|
| 42 | - * should represent the number of warnings that should occur on that line. |
|
| 43 | - * |
|
| 44 | - * @return array<int, int> |
|
| 45 | - */ |
|
| 46 | - public function getWarningList() |
|
| 47 | - { |
|
| 48 | - return []; |
|
| 49 | - |
|
| 50 | - }//end getWarningList() |
|
| 18 | + /** |
|
| 19 | + * Returns the lines where errors should occur. |
|
| 20 | + * |
|
| 21 | + * The key of the array should represent the line number and the value |
|
| 22 | + * should represent the number of errors that should occur on that line. |
|
| 23 | + * |
|
| 24 | + * @return array<int, int> |
|
| 25 | + */ |
|
| 26 | + public function getErrorList() |
|
| 27 | + { |
|
| 28 | + return [ |
|
| 29 | + 2 => 1, |
|
| 30 | + 4 => 1, |
|
| 31 | + 6 => 1, |
|
| 32 | + 12 => 1, |
|
| 33 | + ]; |
|
| 34 | + |
|
| 35 | + }//end getErrorList() |
|
| 36 | + |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * Returns the lines where warnings should occur. |
|
| 40 | + * |
|
| 41 | + * The key of the array should represent the line number and the value |
|
| 42 | + * should represent the number of warnings that should occur on that line. |
|
| 43 | + * |
|
| 44 | + * @return array<int, int> |
|
| 45 | + */ |
|
| 46 | + public function getWarningList() |
|
| 47 | + { |
|
| 48 | + return []; |
|
| 49 | + |
|
| 50 | + }//end getWarningList() |
|
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | }//end class |
@@ -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 [7 => 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 [7 => 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,40 +15,40 @@ |
||
| 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 | - 1 => 1, |
|
| 30 | - 2 => 1, |
|
| 31 | - 4 => 1, |
|
| 32 | - 7 => 1, |
|
| 33 | - 10 => 1, |
|
| 34 | - ]; |
|
| 35 | - |
|
| 36 | - }//end getErrorList() |
|
| 37 | - |
|
| 38 | - |
|
| 39 | - /** |
|
| 40 | - * Returns the lines where warnings should occur. |
|
| 41 | - * |
|
| 42 | - * The key of the array should represent the line number and the value |
|
| 43 | - * should represent the number of warnings that should occur on that line. |
|
| 44 | - * |
|
| 45 | - * @return array<int, int> |
|
| 46 | - */ |
|
| 47 | - public function getWarningList() |
|
| 48 | - { |
|
| 49 | - return []; |
|
| 50 | - |
|
| 51 | - }//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 | + 1 => 1, |
|
| 30 | + 2 => 1, |
|
| 31 | + 4 => 1, |
|
| 32 | + 7 => 1, |
|
| 33 | + 10 => 1, |
|
| 34 | + ]; |
|
| 35 | + |
|
| 36 | + }//end getErrorList() |
|
| 37 | + |
|
| 38 | + |
|
| 39 | + /** |
|
| 40 | + * Returns the lines where warnings should occur. |
|
| 41 | + * |
|
| 42 | + * The key of the array should represent the line number and the value |
|
| 43 | + * should represent the number of warnings that should occur on that line. |
|
| 44 | + * |
|
| 45 | + * @return array<int, int> |
|
| 46 | + */ |
|
| 47 | + public function getWarningList() |
|
| 48 | + { |
|
| 49 | + return []; |
|
| 50 | + |
|
| 51 | + }//end getWarningList() |
|
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | }//end class |
@@ -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 | - 7 => 1, |
|
| 30 | - 19 => 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 | + 7 => 1, |
|
| 30 | + 19 => 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,45 +15,45 @@ |
||
| 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 | - 15 => 1, |
|
| 31 | - 31 => 1, |
|
| 32 | - 54 => 1, |
|
| 33 | - ]; |
|
| 34 | - |
|
| 35 | - }//end getErrorList() |
|
| 36 | - |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * Returns the lines where warnings should occur. |
|
| 40 | - * |
|
| 41 | - * The key of the array should represent the line number and the value |
|
| 42 | - * should represent the number of warnings that should occur on that line. |
|
| 43 | - * |
|
| 44 | - * @return array<int, int> |
|
| 45 | - */ |
|
| 46 | - public function getWarningList() |
|
| 47 | - { |
|
| 48 | - return [ |
|
| 49 | - 29 => 1, |
|
| 50 | - 30 => 1, |
|
| 51 | - 50 => 1, |
|
| 52 | - 66 => 1, |
|
| 53 | - 67 => 1, |
|
| 54 | - ]; |
|
| 55 | - |
|
| 56 | - }//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 | + 15 => 1, |
|
| 31 | + 31 => 1, |
|
| 32 | + 54 => 1, |
|
| 33 | + ]; |
|
| 34 | + |
|
| 35 | + }//end getErrorList() |
|
| 36 | + |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * Returns the lines where warnings should occur. |
|
| 40 | + * |
|
| 41 | + * The key of the array should represent the line number and the value |
|
| 42 | + * should represent the number of warnings that should occur on that line. |
|
| 43 | + * |
|
| 44 | + * @return array<int, int> |
|
| 45 | + */ |
|
| 46 | + public function getWarningList() |
|
| 47 | + { |
|
| 48 | + return [ |
|
| 49 | + 29 => 1, |
|
| 50 | + 30 => 1, |
|
| 51 | + 50 => 1, |
|
| 52 | + 66 => 1, |
|
| 53 | + 67 => 1, |
|
| 54 | + ]; |
|
| 55 | + |
|
| 56 | + }//end getWarningList() |
|
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | }//end class |
@@ -51,9 +51,9 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | class Checking_Tags |
| 53 | 53 | { |
| 54 | - class Sub_Class { |
|
| 54 | + class Sub_Class { |
|
| 55 | 55 | |
| 56 | - }//end class |
|
| 56 | + }//end class |
|
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | }//end class |
@@ -1,51 +1,51 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | try { |
| 3 | - // Try something. |
|
| 4 | - $variable = 'string'; |
|
| 3 | + // Try something. |
|
| 4 | + $variable = 'string'; |
|
| 5 | 5 | } catch (Exception $e) { |
| 6 | - // Comment. |
|
| 7 | - echo 'something broke'; |
|
| 6 | + // Comment. |
|
| 7 | + echo 'something broke'; |
|
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | try { |
| 11 | - // Try something. |
|
| 12 | - $variable = 'string'; |
|
| 11 | + // Try something. |
|
| 12 | + $variable = 'string'; |
|
| 13 | 13 | } catch (Exception $e) { |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | try { |
| 17 | - // Try something. |
|
| 18 | - $variable = 'string'; |
|
| 17 | + // Try something. |
|
| 18 | + $variable = 'string'; |
|
| 19 | 19 | } catch (Exception $e) { |
| 20 | - // Dont want to do anything. |
|
| 20 | + // Dont want to do anything. |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | try { |
| 24 | - $variable = 'string'; |
|
| 24 | + $variable = 'string'; |
|
| 25 | 25 | } catch (MyException $e) { |
| 26 | - echo 'something broke'; |
|
| 26 | + echo 'something broke'; |
|
| 27 | 27 | } catch (Exception $e) { |
| 28 | - echo 'something broke'; |
|
| 28 | + echo 'something broke'; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | try { |
| 32 | - $variable = 'string'; |
|
| 32 | + $variable = 'string'; |
|
| 33 | 33 | } catch (MyException $e) { |
| 34 | 34 | |
| 35 | 35 | } catch (Exception $e) { |
| 36 | - echo 'something broke'; |
|
| 36 | + echo 'something broke'; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | try { |
| 40 | - $variable = 'string'; |
|
| 40 | + $variable = 'string'; |
|
| 41 | 41 | } catch (MyException $e) { |
| 42 | - // Dont do anything. |
|
| 42 | + // Dont do anything. |
|
| 43 | 43 | } catch (Exception $e) { |
| 44 | - // Do nothing. |
|
| 44 | + // Do nothing. |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | try { |
| 48 | - $variable = 'string'; |
|
| 48 | + $variable = 'string'; |
|
| 49 | 49 | } catch (MyException $e) { |
| 50 | 50 | } catch (YourException $e) { |
| 51 | 51 | } catch (OurException $e) { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @return array<int, int> |
| 27 | 27 | */ |
| 28 | - public function getErrorList($testFile='LongConditionClosingCommentUnitTest.inc') |
|
| 28 | + public function getErrorList($testFile = 'LongConditionClosingCommentUnitTest.inc') |
|
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | 31 | case 'LongConditionClosingCommentUnitTest.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='LongConditionClosingCommentUnitTest.inc') |
|
| 29 | - { |
|
| 30 | - switch ($testFile) { |
|
| 31 | - case 'LongConditionClosingCommentUnitTest.inc': |
|
| 32 | - return [ |
|
| 33 | - 49 => 1, |
|
| 34 | - 99 => 1, |
|
| 35 | - 146 => 1, |
|
| 36 | - 192 => 1, |
|
| 37 | - 215 => 1, |
|
| 38 | - 238 => 1, |
|
| 39 | - 261 => 1, |
|
| 40 | - 286 => 1, |
|
| 41 | - 309 => 1, |
|
| 42 | - 332 => 1, |
|
| 43 | - 355 => 1, |
|
| 44 | - 378 => 1, |
|
| 45 | - 493 => 1, |
|
| 46 | - 531 => 1, |
|
| 47 | - 536 => 1, |
|
| 48 | - 540 => 1, |
|
| 49 | - 562 => 1, |
|
| 50 | - 601 => 1, |
|
| 51 | - 629 => 1, |
|
| 52 | - 663 => 1, |
|
| 53 | - 765 => 1, |
|
| 54 | - 798 => 1, |
|
| 55 | - 811 => 1, |
|
| 56 | - 897 => 1, |
|
| 57 | - 931 => 1, |
|
| 58 | - 962 => 1, |
|
| 59 | - 985 => 2, |
|
| 60 | - 1008 => 1, |
|
| 61 | - 1032 => 1, |
|
| 62 | - ]; |
|
| 63 | - break; |
|
| 64 | - case 'LongConditionClosingCommentUnitTest.js': |
|
| 65 | - return [ |
|
| 66 | - 47 => 1, |
|
| 67 | - 97 => 1, |
|
| 68 | - 144 => 1, |
|
| 69 | - 190 => 1, |
|
| 70 | - 213 => 1, |
|
| 71 | - 238 => 1, |
|
| 72 | - 261 => 1, |
|
| 73 | - 284 => 1, |
|
| 74 | - 307 => 1, |
|
| 75 | - 401 => 1, |
|
| 76 | - 439 => 1, |
|
| 77 | - 444 => 1, |
|
| 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='LongConditionClosingCommentUnitTest.inc') |
|
| 29 | + { |
|
| 30 | + switch ($testFile) { |
|
| 31 | + case 'LongConditionClosingCommentUnitTest.inc': |
|
| 32 | + return [ |
|
| 33 | + 49 => 1, |
|
| 34 | + 99 => 1, |
|
| 35 | + 146 => 1, |
|
| 36 | + 192 => 1, |
|
| 37 | + 215 => 1, |
|
| 38 | + 238 => 1, |
|
| 39 | + 261 => 1, |
|
| 40 | + 286 => 1, |
|
| 41 | + 309 => 1, |
|
| 42 | + 332 => 1, |
|
| 43 | + 355 => 1, |
|
| 44 | + 378 => 1, |
|
| 45 | + 493 => 1, |
|
| 46 | + 531 => 1, |
|
| 47 | + 536 => 1, |
|
| 48 | + 540 => 1, |
|
| 49 | + 562 => 1, |
|
| 50 | + 601 => 1, |
|
| 51 | + 629 => 1, |
|
| 52 | + 663 => 1, |
|
| 53 | + 765 => 1, |
|
| 54 | + 798 => 1, |
|
| 55 | + 811 => 1, |
|
| 56 | + 897 => 1, |
|
| 57 | + 931 => 1, |
|
| 58 | + 962 => 1, |
|
| 59 | + 985 => 2, |
|
| 60 | + 1008 => 1, |
|
| 61 | + 1032 => 1, |
|
| 62 | + ]; |
|
| 63 | + break; |
|
| 64 | + case 'LongConditionClosingCommentUnitTest.js': |
|
| 65 | + return [ |
|
| 66 | + 47 => 1, |
|
| 67 | + 97 => 1, |
|
| 68 | + 144 => 1, |
|
| 69 | + 190 => 1, |
|
| 70 | + 213 => 1, |
|
| 71 | + 238 => 1, |
|
| 72 | + 261 => 1, |
|
| 73 | + 284 => 1, |
|
| 74 | + 307 => 1, |
|
| 75 | + 401 => 1, |
|
| 76 | + 439 => 1, |
|
| 77 | + 444 => 1, |
|
| 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='LongConditionClosingCommentUnitTest.inc') |
| 29 | 29 | { |
| 30 | 30 | switch ($testFile) { |
| 31 | - case 'LongConditionClosingCommentUnitTest.inc': |
|
| 32 | - return [ |
|
| 33 | - 49 => 1, |
|
| 34 | - 99 => 1, |
|
| 35 | - 146 => 1, |
|
| 36 | - 192 => 1, |
|
| 37 | - 215 => 1, |
|
| 38 | - 238 => 1, |
|
| 39 | - 261 => 1, |
|
| 40 | - 286 => 1, |
|
| 41 | - 309 => 1, |
|
| 42 | - 332 => 1, |
|
| 43 | - 355 => 1, |
|
| 44 | - 378 => 1, |
|
| 45 | - 493 => 1, |
|
| 46 | - 531 => 1, |
|
| 47 | - 536 => 1, |
|
| 48 | - 540 => 1, |
|
| 49 | - 562 => 1, |
|
| 50 | - 601 => 1, |
|
| 51 | - 629 => 1, |
|
| 52 | - 663 => 1, |
|
| 53 | - 765 => 1, |
|
| 54 | - 798 => 1, |
|
| 55 | - 811 => 1, |
|
| 56 | - 897 => 1, |
|
| 57 | - 931 => 1, |
|
| 58 | - 962 => 1, |
|
| 59 | - 985 => 2, |
|
| 60 | - 1008 => 1, |
|
| 61 | - 1032 => 1, |
|
| 62 | - ]; |
|
| 63 | - break; |
|
| 64 | - case 'LongConditionClosingCommentUnitTest.js': |
|
| 65 | - return [ |
|
| 66 | - 47 => 1, |
|
| 67 | - 97 => 1, |
|
| 68 | - 144 => 1, |
|
| 69 | - 190 => 1, |
|
| 70 | - 213 => 1, |
|
| 71 | - 238 => 1, |
|
| 72 | - 261 => 1, |
|
| 73 | - 284 => 1, |
|
| 74 | - 307 => 1, |
|
| 75 | - 401 => 1, |
|
| 76 | - 439 => 1, |
|
| 77 | - 444 => 1, |
|
| 78 | - ]; |
|
| 79 | - break; |
|
| 80 | - default: |
|
| 81 | - return []; |
|
| 82 | - break; |
|
| 31 | + case 'LongConditionClosingCommentUnitTest.inc': |
|
| 32 | + return [ |
|
| 33 | + 49 => 1, |
|
| 34 | + 99 => 1, |
|
| 35 | + 146 => 1, |
|
| 36 | + 192 => 1, |
|
| 37 | + 215 => 1, |
|
| 38 | + 238 => 1, |
|
| 39 | + 261 => 1, |
|
| 40 | + 286 => 1, |
|
| 41 | + 309 => 1, |
|
| 42 | + 332 => 1, |
|
| 43 | + 355 => 1, |
|
| 44 | + 378 => 1, |
|
| 45 | + 493 => 1, |
|
| 46 | + 531 => 1, |
|
| 47 | + 536 => 1, |
|
| 48 | + 540 => 1, |
|
| 49 | + 562 => 1, |
|
| 50 | + 601 => 1, |
|
| 51 | + 629 => 1, |
|
| 52 | + 663 => 1, |
|
| 53 | + 765 => 1, |
|
| 54 | + 798 => 1, |
|
| 55 | + 811 => 1, |
|
| 56 | + 897 => 1, |
|
| 57 | + 931 => 1, |
|
| 58 | + 962 => 1, |
|
| 59 | + 985 => 2, |
|
| 60 | + 1008 => 1, |
|
| 61 | + 1032 => 1, |
|
| 62 | + ]; |
|
| 63 | + break; |
|
| 64 | + case 'LongConditionClosingCommentUnitTest.js': |
|
| 65 | + return [ |
|
| 66 | + 47 => 1, |
|
| 67 | + 97 => 1, |
|
| 68 | + 144 => 1, |
|
| 69 | + 190 => 1, |
|
| 70 | + 213 => 1, |
|
| 71 | + 238 => 1, |
|
| 72 | + 261 => 1, |
|
| 73 | + 284 => 1, |
|
| 74 | + 307 => 1, |
|
| 75 | + 401 => 1, |
|
| 76 | + 439 => 1, |
|
| 77 | + 444 => 1, |
|
| 78 | + ]; |
|
| 79 | + break; |
|
| 80 | + default: |
|
| 81 | + return []; |
|
| 82 | + break; |
|
| 83 | 83 | }//end switch |
| 84 | 84 | |
| 85 | 85 | }//end getErrorList() |