Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 2 | public function main($id, $mode) |
|
1 ignored issue
–
show
|
|||
23 | { |
||
24 | 2 | global $phpbb_container; |
|
1 ignored issue
–
show
|
|||
25 | |||
26 | /** @var \phpbb\ads\controller\admin_controller $admin_controller */ |
||
27 | 2 | $admin_controller = $phpbb_container->get('phpbb.ads.admin.controller'); |
|
28 | |||
29 | // Make the $u_action url available in the admin controller |
||
30 | 2 | $admin_controller->set_page_url($this->u_action); |
|
31 | |||
32 | // Load a template from adm/style for our ACP page |
||
33 | 2 | $this->tpl_name = $mode . '_ads'; |
|
34 | |||
35 | // Set the page title for our ACP page |
||
36 | 2 | $this->page_title = $admin_controller->get_page_title(); |
|
37 | |||
38 | 2 | $admin_controller->{'mode_' . $mode}(); |
|
39 | 2 | } |
|
40 | } |
||
41 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.