1 | <?php |
||
14 | class textarea extends base |
||
15 | { |
||
16 | /** @var \phpbb\auth\auth */ |
||
17 | protected $auth; |
||
18 | |||
19 | /** @var \phpbb\config\config */ |
||
20 | protected $config; |
||
21 | |||
22 | /** @var \phpbb\pagination */ |
||
23 | protected $pagination; |
||
24 | |||
25 | /** @var \phpbb\template\template */ |
||
26 | protected $template; |
||
27 | |||
28 | /** @var \phpbb\template\context */ |
||
29 | protected $template_context; |
||
30 | |||
31 | /** @var \blitze\sitemaker\services\util */ |
||
32 | protected $util; |
||
33 | |||
34 | /** @var string */ |
||
35 | protected $phpbb_root_path; |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $php_ext; |
||
39 | |||
40 | /** |
||
41 | * Constructor |
||
42 | * |
||
43 | * @param \phpbb\language\language $language Language object |
||
44 | * @param \phpbb\request\request_interface $request Request object |
||
45 | * @param \blitze\sitemaker\services\template $ptemplate Sitemaker template object |
||
46 | * @param \phpbb\auth\auth $auth Auth object |
||
47 | * @param \phpbb\config\config $config Config object |
||
48 | * @param \phpbb\pagination $pagination Pagination object |
||
49 | * @param \phpbb\template\template $template Template object |
||
50 | * @param \phpbb\template\context $template_context Template context object |
||
51 | * @param \blitze\sitemaker\services\util $util Sitemaker utility object |
||
52 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
53 | * @param string $php_ext php file extension |
||
54 | */ |
||
55 | 16 | public function __construct(\phpbb\language\language $language, \phpbb\request\request_interface $request, \blitze\sitemaker\services\template $ptemplate, \phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\pagination $pagination, \phpbb\template\template $template, \phpbb\template\context $template_context, \blitze\sitemaker\services\util $util, $phpbb_root_path, $php_ext) |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 4 | public function get_name() |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | 3 | public function get_default_props() |
|
89 | |||
90 | /** |
||
91 | * Display content field |
||
92 | * |
||
93 | * @param array $data |
||
94 | * @param string $view_mode |
||
95 | * @param array $topic_data |
||
96 | * @return mixed |
||
97 | */ |
||
98 | 11 | public function display_field(array $data = array(), $view_mode = 'summary', array $topic_data = array()) |
|
116 | |||
117 | /** |
||
118 | * @inheritdoc |
||
119 | */ |
||
120 | 2 | public function show_form_field($name, array &$data, $forum_id = 0) |
|
137 | |||
138 | /** |
||
139 | * @param int $forum_id |
||
140 | * @return array |
||
141 | */ |
||
142 | 1 | protected function get_editor($forum_id) |
|
166 | |||
167 | /** |
||
168 | * @param string $html |
||
169 | * @param int $max_chars |
||
170 | * @return string |
||
171 | */ |
||
172 | 5 | protected function get_summary_value($html, $max_chars) |
|
181 | |||
182 | /** |
||
183 | * @param array $pages |
||
184 | * @param array $titles |
||
185 | * @param array $data |
||
186 | * @return mixed |
||
187 | */ |
||
188 | 6 | protected function get_detail_value(array $pages, array $titles, array $data) |
|
206 | |||
207 | /** |
||
208 | * Generate pagination for topic subpages |
||
209 | * |
||
210 | * @param string $topic_url |
||
211 | * @param int $total_pages |
||
212 | * @param int $start |
||
213 | * @return void |
||
214 | */ |
||
215 | 5 | protected function generate_page_nav($topic_url, $total_pages, &$start) |
|
221 | |||
222 | /** |
||
223 | * Generate Table of contents |
||
224 | * |
||
225 | * @param int $start |
||
226 | * @param string $topic_url |
||
227 | * @param array $page_titles |
||
228 | * @return void |
||
229 | */ |
||
230 | 5 | protected function generate_toc($start, $topic_url, array $page_titles) |
|
246 | |||
247 | /** |
||
248 | * When Previewing topic, we show all pages |
||
249 | * |
||
250 | * @param array $pages |
||
251 | * @return mixed |
||
252 | */ |
||
253 | 5 | protected function get_page_content($start, $field_name, array $pages) |
|
267 | } |
||
268 |
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.