1 | <?php |
||
12 | class portal extends base_view |
||
13 | { |
||
14 | /** @var \phpbb\config\config */ |
||
15 | protected $config; |
||
16 | |||
17 | /** @var \blitze\content\services\types */ |
||
18 | protected $content_types; |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | * |
||
23 | * @param \phpbb\event\dispatcher_interface $phpbb_dispatcher Event dispatcher object |
||
24 | * @param \phpbb\language\language $language Language Object |
||
25 | * @param \phpbb\pagination $pagination Pagination object |
||
26 | * @param \phpbb\template\template $template Template object |
||
27 | * @param \blitze\content\services\fields $fields Content fields object |
||
28 | * @param \blitze\sitemaker\services\forum\data $forum Forum Data object |
||
29 | * @param \blitze\content\services\helper $helper Content helper object |
||
30 | * @param \blitze\content\services\quickmod $quickmod Quick moderator tools |
||
31 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
32 | * @param string $php_ext php file extension |
||
33 | * @param \phpbb\config\config $config Config object |
||
34 | * @param \blitze\content\services\types $content_types Content types object |
||
35 | */ |
||
36 | public function __construct(\phpbb\event\dispatcher_interface $phpbb_dispatcher, \phpbb\language\language $language, \phpbb\pagination $pagination, \phpbb\template\template $template, \blitze\content\services\fields $fields, \blitze\sitemaker\services\forum\data $forum, \blitze\content\services\helper $helper, \blitze\content\services\quickmod $quickmod, $phpbb_root_path, $php_ext, \phpbb\config\config $config, \blitze\content\services\types $content_types) |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function get_name() |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function get_langname() |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function get_index_template() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function render_filter($filter_type, $filter_value, $page) |
||
99 | |||
100 | /** |
||
101 | * @param array $forums_data |
||
102 | * @return void |
||
103 | */ |
||
104 | protected function display_filtered_topics(array $forums_data, array $topics_data, array $users_cache) |
||
127 | } |
||
128 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.