Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function index(): void |
||
18 | { |
||
19 | $this->setPreferences(); |
||
20 | $title = 'Api Help'; |
||
21 | $meta_title = 'Api Help Topics'; |
||
22 | $meta_keywords = 'view,nzb,api,details,help,json,rss,atom'; |
||
23 | $meta_description = 'View description of the site Nzb Api.'; |
||
24 | |||
25 | $content = $this->smarty->fetch('apidesc.tpl'); |
||
26 | $this->smarty->assign(compact('content', 'title', 'meta_title', 'meta_keywords', 'meta_description')); |
||
27 | $this->pagerender(); |
||
28 | } |
||
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.