| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function main($id, $mode) |
||
| 30 | { |
||
| 31 | global $phpbb_container; |
||
| 32 | |||
| 33 | /** @var \dark1\reducesearchindex\controller\acp_controller $acp_controller */ |
||
| 34 | $acp_controller = $phpbb_container->get('dark1.reducesearchindex.controller.acp'); |
||
| 35 | |||
| 36 | // Load the display handle in our ACP controller |
||
| 37 | $acp_controller->set_data($id, $mode, $this->u_action); |
||
| 38 | |||
| 39 | // Get data from our ACP controller |
||
| 40 | $acp_get_data = $acp_controller->get_data(); |
||
|
|
|||
| 41 | |||
| 42 | // Load a template from adm/style for our ACP page |
||
| 43 | $this->tpl_name = $acp_get_data['tpl_name']; |
||
| 44 | |||
| 45 | // Set the page title for our ACP page |
||
| 46 | $this->page_title = $acp_get_data['page_title']; |
||
| 47 | |||
| 48 | // Load the display handle in our ACP controller |
||
| 49 | $acp_controller->display(); |
||
| 50 | } |
||
| 52 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.