Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
88.89% covered (warning)
88.89%
8 / 9
75.00% covered (warning)
75.00%
3 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
SpecialLongPages
88.89% covered (warning)
88.89%
8 / 9
75.00% covered (warning)
75.00%
3 / 4
4.02
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
 sortDescending
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getExcludedPageProperty
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getGroupName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * @license GPL-2.0-or-later
4 * @file
5 */
6
7namespace MediaWiki\Specials;
8
9use MediaWiki\Page\LinkBatchFactory;
10use MediaWiki\Title\NamespaceInfo;
11use Wikimedia\Rdbms\IConnectionProvider;
12
13/**
14 * Implements Special:Longpages
15 *
16 * @ingroup SpecialPage
17 */
18class SpecialLongPages extends SpecialShortPages {
19
20    public function __construct(
21        NamespaceInfo $namespaceInfo,
22        IConnectionProvider $dbProvider,
23        LinkBatchFactory $linkBatchFactory
24    ) {
25        parent::__construct(
26            $namespaceInfo,
27            $dbProvider,
28            $linkBatchFactory
29        );
30        $this->mName = 'Longpages';
31    }
32
33    /** @inheritDoc */
34    protected function sortDescending() {
35        return true;
36    }
37
38    /** @inheritDoc */
39    protected function getExcludedPageProperty(): ?string {
40        return null;
41    }
42
43    /** @inheritDoc */
44    protected function getGroupName() {
45        return 'maintenance';
46    }
47}
48
49// @codeCoverageIgnoreStart
50/** @deprecated class alias since 1.41 */
51class_alias( SpecialLongPages::class, 'SpecialLongPages' );
52// @codeCoverageIgnoreEnd