Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
NoredirectFilter | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
pass | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\ActiveAbstract; |
4 | |
5 | use DumpFilter; |
6 | use stdClass; |
7 | |
8 | class NoredirectFilter extends DumpFilter { |
9 | /** |
10 | * @param stdClass $page |
11 | * @return bool |
12 | */ |
13 | protected function pass( $page ) { |
14 | return !$page->page_is_redirect; |
15 | } |
16 | } |
17 | |
18 | class_alias( NoredirectFilter::class, 'NoredirectFilter' ); |