Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
NoopRemediator | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
redirectInIndex | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
pageNotInIndex | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
ghostPageInIndex | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
pageInWrongIndex | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
oldVersionInIndex | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
oldDocument | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace CirrusSearch\Sanity; |
4 | |
5 | use MediaWiki\Title\Title; |
6 | use WikiPage; |
7 | |
8 | /** |
9 | * Remediator that takes no actions. |
10 | */ |
11 | class NoopRemediator implements Remediator { |
12 | |
13 | /** |
14 | * @param WikiPage $page |
15 | */ |
16 | public function redirectInIndex( WikiPage $page ) { |
17 | } |
18 | |
19 | /** |
20 | * @param WikiPage $page |
21 | */ |
22 | public function pageNotInIndex( WikiPage $page ) { |
23 | } |
24 | |
25 | /** |
26 | * @param string $docId |
27 | * @param Title $title |
28 | */ |
29 | public function ghostPageInIndex( $docId, Title $title ) { |
30 | } |
31 | |
32 | /** |
33 | * @param string $docId |
34 | * @param WikiPage $page |
35 | * @param string $indexSuffix |
36 | */ |
37 | public function pageInWrongIndex( $docId, WikiPage $page, $indexSuffix ) { |
38 | } |
39 | |
40 | /** |
41 | * @param string $docId elasticsearch document id |
42 | * @param WikiPage $page page with outdated document in index |
43 | * @param string $indexSuffix index contgaining outdated document |
44 | */ |
45 | public function oldVersionInIndex( $docId, WikiPage $page, $indexSuffix ) { |
46 | } |
47 | |
48 | /** |
49 | * @param WikiPage $page Page considered too old in index |
50 | */ |
51 | public function oldDocument( WikiPage $page ) { |
52 | } |
53 | } |