Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
50.00% |
3 / 6 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
AutoModeratorConfigLoaderStaticTrait | |
50.00% |
3 / 6 |
|
50.00% |
1 / 2 |
2.50 | |
0.00% |
0 / 1 |
getAutoModeratorWikiConfig | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
getAutoModeratorConfig | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace AutoModerator\Config; |
4 | |
5 | use AutoModerator\AutoModeratorServices; |
6 | use MediaWiki\Config\Config; |
7 | use MediaWiki\MediaWikiServices; |
8 | |
9 | trait AutoModeratorConfigLoaderStaticTrait { |
10 | /** |
11 | * simple service wrapper |
12 | * |
13 | * @return WikiPageConfig |
14 | */ |
15 | private static function getAutoModeratorWikiConfig() { |
16 | return AutoModeratorServices::wrap( |
17 | MediaWikiServices::getInstance() |
18 | )->getAutoModeratorWikiConfig(); |
19 | } |
20 | |
21 | /** |
22 | * simple service wrapper |
23 | * |
24 | * @return Config |
25 | */ |
26 | private static function getAutoModeratorConfig() { |
27 | return AutoModeratorServices::wrap( |
28 | MediaWikiServices::getInstance() |
29 | )->getAutoModeratorConfig(); |
30 | } |
31 | } |