Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
20.00% |
1 / 5 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
SpecialSkinDistributor | |
20.00% |
1 / 5 |
|
50.00% |
1 / 2 |
12.19 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getPopularList | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
12 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\ExtensionDistributor\Specials; |
4 | |
5 | use IBufferingStatsdDataFactory; |
6 | use MediaWiki\Extension\ExtensionDistributor\Providers\ExtDistProvider; |
7 | |
8 | /** |
9 | * Special page that allows users to download skins as tar archives. |
10 | * |
11 | * @author Legoktm |
12 | */ |
13 | class SpecialSkinDistributor extends SpecialBaseDistributor { |
14 | |
15 | protected $type = ExtDistProvider::SKINS; |
16 | |
17 | /** |
18 | * @param IBufferingStatsdDataFactory $statsFactory |
19 | */ |
20 | public function __construct( IBufferingStatsdDataFactory $statsFactory ) { |
21 | parent::__construct( 'SkinDistributor', $statsFactory ); |
22 | } |
23 | |
24 | protected function getPopularList() { |
25 | $list = parent::getPopularList(); |
26 | if ( $list ) { |
27 | return $list; |
28 | } |
29 | |
30 | return $this->getConfig()->get( 'ExtDistPopularSkinList' ) ?: false; |
31 | } |
32 | } |