Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
NoredirectFilter
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 pass
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Extension\ActiveAbstract;
4
5use DumpFilter;
6use stdClass;
7
8class 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
18class_alias( NoredirectFilter::class, 'NoredirectFilter' );