1 | <?php |
||
12 | class range extends base |
||
13 | { |
||
14 | /** @var \blitze\sitemaker\services\util */ |
||
15 | protected $util; |
||
16 | |||
17 | /** |
||
18 | * Constructor |
||
19 | * |
||
20 | * @param \phpbb\language\language $language Language object |
||
21 | * @param \phpbb\request\request_interface $request Request object |
||
22 | * @param \blitze\sitemaker\services\template $ptemplate Sitemaker template object |
||
23 | * @param \blitze\sitemaker\services\util $util Sitemaker utility object |
||
24 | */ |
||
25 | 11 | public function __construct(\phpbb\language\language $language, \phpbb\request\request_interface $request, \blitze\sitemaker\services\template $ptemplate, \blitze\sitemaker\services\util $util) |
|
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | 5 | public function get_name() |
|
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 9 | public function get_default_props() |
|
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | 3 | public function show_form_field($name, array &$data) |
|
79 | |||
80 | /** |
||
81 | * @inheritdoc |
||
82 | */ |
||
83 | 5 | public function display_field(array $data) |
|
94 | |||
95 | /** |
||
96 | * @param string $values |
||
|
|||
97 | * @return array |
||
98 | */ |
||
99 | 8 | protected function get_range($value) |
|
103 | |||
104 | /** |
||
105 | * @param array $data |
||
106 | * @return void |
||
107 | */ |
||
108 | 3 | protected function set_range(array &$data) |
|
123 | |||
124 | /** |
||
125 | * @param string $item |
||
126 | * @param int $key |
||
127 | * @param string $prefix |
||
128 | * @return void |
||
129 | */ |
||
130 | 5 | protected function set_prefix(&$item, $key, $prefix) |
|
134 | } |
||
135 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.