Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function apiv2(): void |
||
34 | { |
||
35 | $this->setPreferences(); |
||
36 | $title = 'Api V2 Help'; |
||
37 | $meta_title = 'Api V2 Help Topics'; |
||
38 | $meta_keywords = 'view,nzb,api,details,help,json,rss,atom'; |
||
39 | $meta_description = 'View description of the site Nzb version 2 Api.'; |
||
40 | |||
41 | $content = $this->smarty->fetch('apiv2desc.tpl'); |
||
42 | $this->smarty->assign(compact('content', 'title', 'meta_title', 'meta_keywords', 'meta_description')); |
||
43 | $this->pagerender(); |
||
44 | } |
||
46 |
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. Please note the @ignore annotation hint above.