1 | <?php |
||
12 | class manager |
||
13 | { |
||
14 | /** @var \phpbb\auth\auth */ |
||
15 | protected $auth; |
||
16 | |||
17 | /** @var \phpbb\cache\driver\driver_interface */ |
||
18 | protected $cache; |
||
19 | |||
20 | /** @var \phpbb\config\config */ |
||
21 | protected $config; |
||
22 | |||
23 | /** @var \phpbb\db\driver\driver_interface */ |
||
24 | protected $db; |
||
25 | |||
26 | /** @var \phpbb\user */ |
||
27 | protected $user; |
||
28 | |||
29 | /** @var \acp_forums */ |
||
30 | protected $forum; |
||
31 | |||
32 | /** @var string */ |
||
33 | protected $phpbb_root_path; |
||
34 | |||
35 | /** @var string */ |
||
36 | protected $php_ext; |
||
37 | |||
38 | /** |
||
39 | * Constructor |
||
40 | * |
||
41 | * @param \phpbb\auth\auth $auth Auth object |
||
42 | * @param \phpbb\cache\driver\driver_interface $cache Cache driver interface |
||
43 | * @param \phpbb\config\config $config Config object |
||
44 | * @param \phpbb\db\driver\driver_interface $db Database object |
||
45 | * @param \phpbb\user $user User object |
||
46 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
47 | * @param string $php_ext php file extension |
||
48 | */ |
||
49 | 2 | public function __construct(\phpbb\auth\auth $auth, \phpbb\cache\driver\driver_interface $cache, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path, $php_ext) |
|
59 | |||
60 | /** |
||
61 | * @return void |
||
62 | */ |
||
63 | 2 | protected function init() |
|
72 | |||
73 | /** |
||
74 | * @param array $forum_data |
||
75 | * @param int $forum_perm_from |
||
76 | * @return array |
||
77 | */ |
||
78 | 1 | public function add(array &$forum_data, $forum_perm_from = 0) |
|
99 | |||
100 | /** |
||
101 | * @param int $forum_id |
||
102 | * @param string $action_posts |
||
103 | * @param string $action_subforums |
||
104 | * @param int $posts_to_id |
||
105 | * @param int $subforums_to_id |
||
106 | */ |
||
107 | 1 | public function remove($forum_id, $action_posts = 'delete', $action_subforums = 'delete', $posts_to_id = 0, $subforums_to_id = 0) |
|
117 | |||
118 | /** |
||
119 | * @return void |
||
120 | */ |
||
121 | 2 | protected function reset() |
|
126 | } |
||
127 |
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.