1 | <?php |
||
16 | class SubpageParentAnnotator { |
||
17 | |||
18 | /** |
||
19 | * @var ParserData |
||
20 | */ |
||
21 | private $parserData; |
||
22 | |||
23 | /** |
||
24 | * @var boolean |
||
25 | */ |
||
26 | private $enableSubpageParentAnnotation = true; |
||
27 | |||
28 | /** |
||
29 | * @var boolean |
||
30 | */ |
||
31 | private $disableTranslationSubpageAnnotation = false; |
||
32 | |||
33 | /** |
||
34 | * @since 1.3 |
||
35 | * |
||
36 | * @param ParserData $parserData |
||
37 | */ |
||
38 | 6 | public function __construct( ParserData $parserData ) { |
|
41 | |||
42 | /** |
||
43 | * @since 1.3 |
||
44 | * |
||
45 | * @param boolean $enableSubpageParentAnnotation |
||
46 | */ |
||
47 | 3 | public function enableSubpageParentAnnotation( $enableSubpageParentAnnotation ) { |
|
50 | |||
51 | /** |
||
52 | * @since 1.3 |
||
53 | * |
||
54 | * @param boolean $enableSubpageParentAnnotation |
||
|
|||
55 | */ |
||
56 | 1 | public function disableTranslationSubpageAnnotation( $disableTranslationSubpageAnnotation ) { |
|
59 | |||
60 | /** |
||
61 | * @since 1.3 |
||
62 | */ |
||
63 | 5 | public function addAnnotation() { |
|
98 | |||
99 | // Don't rely on Title::getBaseText as it depends on the wgNamespacesWithSubpages |
||
100 | // setting and if set false will return the normal text including its subparts |
||
101 | 2 | private function getBaseText( $title ) { |
|
111 | |||
112 | } |
||
113 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.