@@ -2,50 +2,50 @@ |
||
2 | 2 | class SomethingActions |
3 | 3 | { |
4 | 4 | |
5 | - private static function _x() |
|
6 | - { |
|
7 | - } |
|
8 | - |
|
9 | - |
|
10 | - public static function y() |
|
11 | - { |
|
12 | - self::z(); |
|
13 | - static::z(); |
|
14 | - SomethingActions::z(); |
|
15 | - static::_x(); |
|
16 | - self::a(); |
|
17 | - static::a(); |
|
18 | - } |
|
19 | - |
|
20 | - |
|
21 | - public static function z() |
|
22 | - { |
|
23 | - } |
|
24 | - |
|
25 | - protected static function a() |
|
26 | - { |
|
27 | - self::a(); // recursion, yay! |
|
28 | - self::z(); |
|
29 | - static::y(); |
|
30 | - self::b(); |
|
31 | - echo self::$_myVar; |
|
32 | - echo static::$yourVar; |
|
33 | - } |
|
5 | + private static function _x() |
|
6 | + { |
|
7 | + } |
|
8 | + |
|
9 | + |
|
10 | + public static function y() |
|
11 | + { |
|
12 | + self::z(); |
|
13 | + static::z(); |
|
14 | + SomethingActions::z(); |
|
15 | + static::_x(); |
|
16 | + self::a(); |
|
17 | + static::a(); |
|
18 | + } |
|
19 | + |
|
20 | + |
|
21 | + public static function z() |
|
22 | + { |
|
23 | + } |
|
24 | + |
|
25 | + protected static function a() |
|
26 | + { |
|
27 | + self::a(); // recursion, yay! |
|
28 | + self::z(); |
|
29 | + static::y(); |
|
30 | + self::b(); |
|
31 | + echo self::$_myVar; |
|
32 | + echo static::$yourVar; |
|
33 | + } |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | abstract class AbstractEditingScreenModeWidgetActions extends AbstractEditingModeWidgetActions { |
37 | 37 | |
38 | - public static function getScreens($systemName) |
|
39 | - { |
|
38 | + public static function getScreens($systemName) |
|
39 | + { |
|
40 | 40 | |
41 | - }//end getScreens() |
|
41 | + }//end getScreens() |
|
42 | 42 | |
43 | - public static function setHelpScreenTitle() |
|
44 | - { |
|
45 | - // This is allowed because we are in an abstract class. |
|
46 | - $screens = self::getScreens(''); |
|
43 | + public static function setHelpScreenTitle() |
|
44 | + { |
|
45 | + // This is allowed because we are in an abstract class. |
|
46 | + $screens = self::getScreens(''); |
|
47 | 47 | |
48 | - }//end setHelpScreenTitle() |
|
48 | + }//end setHelpScreenTitle() |
|
49 | 49 | |
50 | 50 | }//end class |
51 | 51 | ?> |
@@ -5,29 +5,29 @@ discard block |
||
5 | 5 | Channels::includeAsset('Folder'); |
6 | 6 | |
7 | 7 | function one() { |
8 | - Channels::includeSystem('MySystem'); |
|
9 | - $siteid = MySystem2::getCurrentSiteId(); |
|
10 | - Page::create(); |
|
11 | - PageAssetType::create(); |
|
8 | + Channels::includeSystem('MySystem'); |
|
9 | + $siteid = MySystem2::getCurrentSiteId(); |
|
10 | + Page::create(); |
|
11 | + PageAssetType::create(); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | function two() { |
15 | - Page2AssetType::create(); |
|
16 | - Folder::getFolder(); |
|
15 | + Page2AssetType::create(); |
|
16 | + Folder::getFolder(); |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | Channels::includeAsset('Asset'); |
20 | 20 | class AssetListingAssetType extends AssetAssetType |
21 | 21 | { |
22 | - function one() { |
|
23 | - Channels::includeSystem('MySystem2'); |
|
24 | - Channels::includeSystem('Page2'); |
|
25 | - $siteid = MySystem2::getCurrentSiteId(); |
|
26 | - } |
|
22 | + function one() { |
|
23 | + Channels::includeSystem('MySystem2'); |
|
24 | + Channels::includeSystem('Page2'); |
|
25 | + $siteid = MySystem2::getCurrentSiteId(); |
|
26 | + } |
|
27 | 27 | |
28 | - function two() { |
|
29 | - $siteid = Page2::getCurrentSiteId(); |
|
30 | - } |
|
28 | + function two() { |
|
29 | + $siteid = Page2::getCurrentSiteId(); |
|
30 | + } |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | Channels::includeSystem('Log'); |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | class MyLog implements Log3 {} |
44 | 44 | |
45 | 45 | if (self::systemExists($systemName) === FALSE) { |
46 | - return $actions; |
|
46 | + return $actions; |
|
47 | 47 | } else { |
48 | - // Shouldn't throw an error because we don't know the system name. |
|
49 | - self::includeSystem($systemName); |
|
50 | - self::includeSystem($systemNames['log']); |
|
48 | + // Shouldn't throw an error because we don't know the system name. |
|
49 | + self::includeSystem($systemName); |
|
50 | + self::includeSystem($systemNames['log']); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | Channels::includeSystem('Widget'); |
@@ -56,12 +56,12 @@ discard block |
||
56 | 56 | |
57 | 57 | function myFunction() |
58 | 58 | { |
59 | - if (Channels::systemExists('Log5') === TRUE) { |
|
60 | - Channels::includeSystem('Log5'); |
|
61 | - } else { |
|
62 | - return; |
|
63 | - } |
|
59 | + if (Channels::systemExists('Log5') === TRUE) { |
|
60 | + Channels::includeSystem('Log5'); |
|
61 | + } else { |
|
62 | + return; |
|
63 | + } |
|
64 | 64 | |
65 | - Log5::addProjectLog('metadata.field.update', $msg); |
|
65 | + Log5::addProjectLog('metadata.field.update', $msg); |
|
66 | 66 | } |
67 | 67 | ?> |
68 | 68 | \ No newline at end of file |
@@ -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 | - 12 => 1, |
|
30 | - 13 => 1, |
|
31 | - 28 => 1, |
|
32 | - 29 => 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 | + 12 => 1, |
|
30 | + 13 => 1, |
|
31 | + 28 => 1, |
|
32 | + 29 => 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 |
@@ -4,21 +4,21 @@ discard block |
||
4 | 4 | require_once 'libs/FileSystem2.inc'; |
5 | 5 | |
6 | 6 | function one() { |
7 | - Channels::includeSystem('MySystem2'); |
|
8 | - $siteid = MySystem2::getCurrentSiteId(); |
|
9 | - Page::create(); |
|
10 | - PageAssetType::create(); |
|
7 | + Channels::includeSystem('MySystem2'); |
|
8 | + $siteid = MySystem2::getCurrentSiteId(); |
|
9 | + Page::create(); |
|
10 | + PageAssetType::create(); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | function two() { |
14 | - $siteid = MySystem2::getCurrentSiteId(); |
|
15 | - $parserFiles = FileSystem2::listDirectory(); |
|
14 | + $siteid = MySystem2::getCurrentSiteId(); |
|
15 | + $parserFiles = FileSystem2::listDirectory(); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | function three() { |
19 | - include 'libs/FileSystem.inc'; |
|
20 | - $siteid = MySystem::getCurrentSiteId(); |
|
21 | - $parserFiles = FileSystem::listDirectory(); |
|
19 | + include 'libs/FileSystem.inc'; |
|
20 | + $siteid = MySystem::getCurrentSiteId(); |
|
21 | + $parserFiles = FileSystem::listDirectory(); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | $siteid = MySystem2::getCurrentSiteId(); |
@@ -30,26 +30,26 @@ discard block |
||
30 | 30 | |
31 | 31 | class AssetListingAssetType extends AssetAssetType |
32 | 32 | { |
33 | - function one() { |
|
34 | - Channels::includeSystem('MySystem2'); |
|
35 | - $siteid = MySystem2::getCurrentSiteId(); |
|
36 | - Page::create(); |
|
37 | - PageAssetType::create(); |
|
38 | - } |
|
39 | - |
|
40 | - function two() { |
|
41 | - $siteid = MySystem2::getCurrentSiteId(); |
|
42 | - $parserFiles = FileSystem2::listDirectory(); |
|
43 | - return parent::two(); |
|
44 | - } |
|
45 | - |
|
46 | - function three() { |
|
47 | - include 'libs/FileSystem.inc'; |
|
48 | - $siteid = MySystem::getCurrentSiteId(); |
|
49 | - $parserFiles = FileSystem::listDirectory(); |
|
50 | - echo self::two(); |
|
51 | - echo static::two(); |
|
52 | - } |
|
33 | + function one() { |
|
34 | + Channels::includeSystem('MySystem2'); |
|
35 | + $siteid = MySystem2::getCurrentSiteId(); |
|
36 | + Page::create(); |
|
37 | + PageAssetType::create(); |
|
38 | + } |
|
39 | + |
|
40 | + function two() { |
|
41 | + $siteid = MySystem2::getCurrentSiteId(); |
|
42 | + $parserFiles = FileSystem2::listDirectory(); |
|
43 | + return parent::two(); |
|
44 | + } |
|
45 | + |
|
46 | + function three() { |
|
47 | + include 'libs/FileSystem.inc'; |
|
48 | + $siteid = MySystem::getCurrentSiteId(); |
|
49 | + $parserFiles = FileSystem::listDirectory(); |
|
50 | + echo self::two(); |
|
51 | + echo static::two(); |
|
52 | + } |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | echo Init::ROOT_DIR; |
@@ -74,21 +74,21 @@ discard block |
||
74 | 74 | |
75 | 75 | class AssetListingUnitTest extends AbstractMySourceUnitTest |
76 | 76 | { |
77 | - function setUp() { |
|
78 | - parent::setUp(); |
|
79 | - Channels::includeSystem('MySystem2'); |
|
80 | - include_once 'Libs/FileSystem.inc'; |
|
81 | - } |
|
82 | - |
|
83 | - function two() { |
|
84 | - $siteid = MySystem2::getCurrentSiteId(); |
|
85 | - $parserFiles = FileSystem::listDirectory(); |
|
86 | - } |
|
87 | - |
|
88 | - function three() { |
|
89 | - $siteid = MySystem3::getCurrentSiteId(); |
|
90 | - $parserFiles = FileSystem::listDirectory(); |
|
91 | - } |
|
77 | + function setUp() { |
|
78 | + parent::setUp(); |
|
79 | + Channels::includeSystem('MySystem2'); |
|
80 | + include_once 'Libs/FileSystem.inc'; |
|
81 | + } |
|
82 | + |
|
83 | + function two() { |
|
84 | + $siteid = MySystem2::getCurrentSiteId(); |
|
85 | + $parserFiles = FileSystem::listDirectory(); |
|
86 | + } |
|
87 | + |
|
88 | + function three() { |
|
89 | + $siteid = MySystem3::getCurrentSiteId(); |
|
90 | + $parserFiles = FileSystem::listDirectory(); |
|
91 | + } |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | if (Channels::systemExists('Log') === TRUE) { |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | Log::addProjectLog('metadata.field.update', $msg); |
101 | 101 | |
102 | 102 | function two() { |
103 | - Widget::includeWidget('CacheAdminScreen'); |
|
104 | - $barChart = CacheAdminScreenWidgetType::constructBarchart($data); |
|
103 | + Widget::includeWidget('CacheAdminScreen'); |
|
104 | + $barChart = CacheAdminScreenWidgetType::constructBarchart($data); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | $adjustDialog->setOrientation(AbstractWidgetWidgetType::CENTER); |
@@ -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 | - 9 => 1, |
|
30 | - 14 => 1, |
|
31 | - 24 => 1, |
|
32 | - 27 => 1, |
|
33 | - 28 => 1, |
|
34 | - 31 => 1, |
|
35 | - 36 => 1, |
|
36 | - 41 => 1, |
|
37 | - 61 => 1, |
|
38 | - 70 => 1, |
|
39 | - 89 => 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 | + 9 => 1, |
|
30 | + 14 => 1, |
|
31 | + 24 => 1, |
|
32 | + 27 => 1, |
|
33 | + 28 => 1, |
|
34 | + 31 => 1, |
|
35 | + 36 => 1, |
|
36 | + 41 => 1, |
|
37 | + 61 => 1, |
|
38 | + 70 => 1, |
|
39 | + 89 => 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 |
@@ -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 | - 5 => 1, |
|
31 | - 8 => 1, |
|
32 | - 24 => 1, |
|
33 | - 34 => 1, |
|
34 | - 54 => 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 | + 5 => 1, |
|
31 | + 8 => 1, |
|
32 | + 24 => 1, |
|
33 | + 34 => 1, |
|
34 | + 54 => 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 |
@@ -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 | - * @param string $testFile The name of the file being tested. |
|
25 | - * |
|
26 | - * @return array<int, int> |
|
27 | - */ |
|
28 | - public function getErrorList($testFile='AssignThisUnitTest.js') |
|
29 | - { |
|
30 | - if ($testFile !== 'AssignThisUnitTest.js') { |
|
31 | - return []; |
|
32 | - } |
|
33 | - |
|
34 | - return [ |
|
35 | - 7 => 1, |
|
36 | - 11 => 1, |
|
37 | - 16 => 1, |
|
38 | - ]; |
|
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 | + * @param string $testFile The name of the file being tested. |
|
25 | + * |
|
26 | + * @return array<int, int> |
|
27 | + */ |
|
28 | + public function getErrorList($testFile='AssignThisUnitTest.js') |
|
29 | + { |
|
30 | + if ($testFile !== 'AssignThisUnitTest.js') { |
|
31 | + return []; |
|
32 | + } |
|
33 | + |
|
34 | + return [ |
|
35 | + 7 => 1, |
|
36 | + 11 => 1, |
|
37 | + 16 => 1, |
|
38 | + ]; |
|
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 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='AssignThisUnitTest.js') |
|
28 | + public function getErrorList($testFile = 'AssignThisUnitTest.js') |
|
29 | 29 | { |
30 | 30 | if ($testFile !== 'AssignThisUnitTest.js') { |
31 | 31 | return []; |
@@ -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 [4 => 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 [4 => 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,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 | - * @param string $testFile The name of the file being tested. |
|
25 | - * |
|
26 | - * @return array<int, int> |
|
27 | - */ |
|
28 | - public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js') |
|
29 | - { |
|
30 | - return [ |
|
31 | - 18 => 1, |
|
32 | - 23 => 2, |
|
33 | - 26 => 1, |
|
34 | - 30 => 1, |
|
35 | - 34 => 1, |
|
36 | - 43 => 2, |
|
37 | - 91 => 1, |
|
38 | - 123 => 1, |
|
39 | - ]; |
|
40 | - |
|
41 | - }//end getErrorList() |
|
42 | - |
|
43 | - |
|
44 | - /** |
|
45 | - * Returns the lines where warnings should occur. |
|
46 | - * |
|
47 | - * The key of the array should represent the line number and the value |
|
48 | - * should represent the number of warnings that should occur on that line. |
|
49 | - * |
|
50 | - * @return array<int, int> |
|
51 | - */ |
|
52 | - public function getWarningList() |
|
53 | - { |
|
54 | - return []; |
|
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 | + * @param string $testFile The name of the file being tested. |
|
25 | + * |
|
26 | + * @return array<int, int> |
|
27 | + */ |
|
28 | + public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js') |
|
29 | + { |
|
30 | + return [ |
|
31 | + 18 => 1, |
|
32 | + 23 => 2, |
|
33 | + 26 => 1, |
|
34 | + 30 => 1, |
|
35 | + 34 => 1, |
|
36 | + 43 => 2, |
|
37 | + 91 => 1, |
|
38 | + 123 => 1, |
|
39 | + ]; |
|
40 | + |
|
41 | + }//end getErrorList() |
|
42 | + |
|
43 | + |
|
44 | + /** |
|
45 | + * Returns the lines where warnings should occur. |
|
46 | + * |
|
47 | + * The key of the array should represent the line number and the value |
|
48 | + * should represent the number of warnings that should occur on that line. |
|
49 | + * |
|
50 | + * @return array<int, int> |
|
51 | + */ |
|
52 | + public function getWarningList() |
|
53 | + { |
|
54 | + return []; |
|
55 | + |
|
56 | + }//end getWarningList() |
|
57 | 57 | |
58 | 58 | |
59 | 59 | }//end class |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @return array<int, int> |
27 | 27 | */ |
28 | - public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js') |
|
28 | + public function getErrorList($testFile = 'CreateWidgetTypeCallbackUnitTest.js') |
|
29 | 29 | { |
30 | 30 | return [ |
31 | 31 | 18 => 1, |