1 | <?php |
||
14 | class view implements action_interface |
||
15 | { |
||
16 | /** @var \phpbb\request\request_interface */ |
||
17 | protected $request; |
||
18 | |||
19 | /** @var \phpbb\template\template */ |
||
20 | protected $template; |
||
21 | |||
22 | /** @var \blitze\content\services\types */ |
||
23 | protected $content_types; |
||
24 | |||
25 | /** @var \blitze\content\services\views\views_factory */ |
||
26 | protected $views; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $phpbb_root_path; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $php_ext; |
||
33 | |||
34 | /** |
||
35 | * Constructor |
||
36 | * |
||
37 | * @param \phpbb\request\request_interface $request Request object |
||
38 | * @param \phpbb\template\template $template Template object |
||
39 | * @param \blitze\content\services\types $content_types Content types object |
||
40 | * @param \blitze\content\services\views\views_factory $views Views factory object |
||
41 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
42 | * @param string $php_ext php file extension |
||
43 | */ |
||
44 | public function __construct(\phpbb\request\request_interface $request, \phpbb\template\template $template, \blitze\content\services\types $content_types, \blitze\content\services\views\views_factory $views, $phpbb_root_path, $php_ext) |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function execute($u_action, $mode = '') |
||
84 | |||
85 | /** |
||
86 | * Overwrite template data |
||
87 | * |
||
88 | * @param string $mode |
||
89 | * @param string $u_action |
||
90 | * @param string $type |
||
91 | * @param int $topic_id |
||
92 | * @return string[] |
||
93 | */ |
||
94 | protected function get_data_overwrite($mode, $u_action, $type, $topic_id) |
||
109 | } |
||
110 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.