1 | <?php |
||
14 | class display |
||
15 | { |
||
16 | /** @var \phpbb\auth\auth */ |
||
17 | protected $auth; |
||
18 | |||
19 | /** @var \phpbb\config\config */ |
||
20 | protected $config; |
||
21 | |||
22 | /** @var ContainerInterface */ |
||
23 | protected $phpbb_container; |
||
24 | |||
25 | /** @var \phpbb\request\request_interface */ |
||
26 | protected $request; |
||
27 | |||
28 | /** @var \phpbb\template\template */ |
||
29 | protected $template; |
||
30 | |||
31 | /** @var \phpbb\language\language */ |
||
32 | protected $translator; |
||
33 | |||
34 | /** @var \phpbb\user */ |
||
35 | protected $user; |
||
36 | |||
37 | const SHOW_ON_ALL_ROUTES = 0; |
||
38 | const SHOW_ON_PARENT_ROUTE_ONLY = 1; |
||
39 | const SHOW_ON_CHILD_ROUTE_ONLY = 2; |
||
40 | |||
41 | /** |
||
42 | * Constructor |
||
43 | * |
||
44 | * @param \phpbb\auth\auth $auth Auth object |
||
45 | * @param \phpbb\config\config $config Config object |
||
46 | * @param ContainerInterface $phpbb_container Service container |
||
47 | * @param \phpbb\request\request_interface $request Request object |
||
48 | * @param \phpbb\template\template $template Template object |
||
49 | * @param \phpbb\language\language $translator Language object |
||
50 | * @param \phpbb\user $user User object |
||
51 | */ |
||
52 | 10 | public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, ContainerInterface $phpbb_container, \phpbb\request\request_interface $request, \phpbb\template\template $template, \phpbb\language\language $translator, \phpbb\user $user) |
|
62 | |||
63 | /** |
||
64 | * Show blocks |
||
65 | */ |
||
66 | 10 | public function show() |
|
91 | |||
92 | /** |
||
93 | * Get style id |
||
94 | * @return int |
||
95 | */ |
||
96 | 8 | public function get_style_id() |
|
107 | |||
108 | /** |
||
109 | * @return bool |
||
110 | */ |
||
111 | 10 | protected function page_can_have_blocks() |
|
116 | |||
117 | /** |
||
118 | * @return bool |
||
119 | */ |
||
120 | 8 | protected function toggle_edit_mode() |
|
132 | |||
133 | /** |
||
134 | * @param bool $is_sub_route |
||
135 | * @return array |
||
136 | */ |
||
137 | 8 | protected function get_display_modes($is_sub_route) |
|
158 | |||
159 | /** |
||
160 | * @param bool $edit_mode |
||
161 | * @param array $modes |
||
162 | * @return string |
||
163 | */ |
||
164 | 8 | protected function get_edit_mode_url(&$edit_mode, array &$modes) |
|
187 | |||
188 | /** |
||
189 | * @param int $style_id |
||
190 | * @return string |
||
191 | */ |
||
192 | 8 | protected function get_layout($style_id) |
|
199 | |||
200 | /** |
||
201 | * @param int $style_id |
||
|
|||
202 | * @param bool $edit_mode |
||
203 | * @param array $route_info |
||
204 | */ |
||
205 | 8 | protected function show_admin_bar($edit_mode, array $route_info) |
|
212 | } |
||
213 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.