@@ -65,6 +65,9 @@ |
||
65 | 65 | |
66 | 66 | /** |
67 | 67 | * {@inheritdoc} |
68 | + * @param string $filter_type |
|
69 | + * @param string $filter_value |
|
70 | + * @param integer $page |
|
68 | 71 | */ |
69 | 72 | public function render_filter($filter_type, $filter_value, $page) |
70 | 73 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param \blitze\content\services\quickmod $quickmod Quick moderator tools |
31 | 31 | * @param \phpbb\config\config $config Config object |
32 | 32 | * @param \blitze\content\services\types $content_types Content types object |
33 | - */ |
|
33 | + */ |
|
34 | 34 | 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\config\config $config, \blitze\content\services\types $content_types) |
35 | 35 | { |
36 | 36 | parent::__construct($phpbb_dispatcher, $language, $pagination, $template, $fields, $forum, $helper, $quickmod); |
@@ -95,12 +95,12 @@ discard block |
||
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
98 | - /** |
|
99 | - * @param array $forums_data |
|
100 | - * @param array $topics_data |
|
101 | - * @param array $users_cache |
|
102 | - * @return void |
|
103 | - */ |
|
98 | + /** |
|
99 | + * @param array $forums_data |
|
100 | + * @param array $topics_data |
|
101 | + * @param array $users_cache |
|
102 | + * @return void |
|
103 | + */ |
|
104 | 104 | protected function display_filtered_topics(array $forums_data, array $topics_data, array $users_cache) |
105 | 105 | { |
106 | 106 | $update_count = array(); |
@@ -11,11 +11,11 @@ |
||
11 | 11 | |
12 | 12 | interface comments_interface |
13 | 13 | { |
14 | - /** |
|
15 | - * Get comments count for topic |
|
16 | - * @param array $topic_data |
|
17 | - * @return |
|
18 | - */ |
|
14 | + /** |
|
15 | + * Get comments count for topic |
|
16 | + * @param array $topic_data |
|
17 | + * @return |
|
18 | + */ |
|
19 | 19 | public function count(array $topic_data); |
20 | 20 | |
21 | 21 | /** |
@@ -40,9 +40,9 @@ |
||
40 | 40 | throw new \blitze\sitemaker\exception\out_of_bounds(array($action, 'INVALID_REQUEST')); |
41 | 41 | } |
42 | 42 | |
43 | - $service = $this->phpbb_container->get($service_name); |
|
43 | + $service = $this->phpbb_container->get($service_name); |
|
44 | 44 | |
45 | - /** @var \blitze\content\services\actions\action_interface $service */ |
|
46 | - return $service; |
|
45 | + /** @var \blitze\content\services\actions\action_interface $service */ |
|
46 | + return $service; |
|
47 | 47 | } |
48 | 48 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | $types = $content->get_all_types(); |
34 | 34 | foreach ($types as $type => $entity) |
35 | 35 | { |
36 | - /** @var \blitze\content\model\entity\type $entity */ |
|
37 | - $this->content_types[$type] = array( |
|
36 | + /** @var \blitze\content\model\entity\type $entity */ |
|
37 | + $this->content_types[$type] = array( |
|
38 | 38 | 'summary_tpl' => $entity->get_summary_tpl(), |
39 | 39 | 'detail_tpl' => $entity->get_detail_tpl(), |
40 | 40 | 'last_modified' => $entity->get_last_modified(), |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | |
47 | 47 | foreach ($collection as $entity) |
48 | 48 | { |
49 | - /** @var \blitze\sitemaker\model\entity\block $entity */ |
|
50 | - $settings = $entity->get_settings(); |
|
49 | + /** @var \blitze\sitemaker\model\entity\block $entity */ |
|
50 | + $settings = $entity->get_settings(); |
|
51 | 51 | $this->blocks_data[$entity->get_bid()] = array( |
52 | 52 | 'block_tpl' => htmlspecialchars_decode($settings['block_tpl']), |
53 | 53 | 'last_modified' => $settings['last_modified'], |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | return new \Twig_Source($source, $name); |
92 | 92 | } |
93 | - */ |
|
93 | + */ |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * Twig_ExistsLoaderInterface as of Twig 1.11 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @param \blitze\sitemaker\services\forum\data $forum Forum Data object |
47 | 47 | * @param \blitze\content\services\helper $helper Content helper object |
48 | 48 | * @param \blitze\content\services\quickmod $quickmod Quick moderator tools |
49 | - */ |
|
49 | + */ |
|
50 | 50 | 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) |
51 | 51 | { |
52 | 52 | $this->phpbb_dispatcher = $phpbb_dispatcher; |
@@ -157,14 +157,14 @@ discard block |
||
157 | 157 | return $this->display_topic($topic_id, $entity, $update_count, $topic_data_overwrite); |
158 | 158 | } |
159 | 159 | |
160 | - /** |
|
161 | - * @param int $topic_id |
|
162 | - * @param \blitze\content\model\entity\type $entity |
|
163 | - * @param array $update_count |
|
164 | - * @param array $topic_data_overwrite |
|
165 | - * @return array |
|
166 | - * @throws \Exception |
|
167 | - */ |
|
160 | + /** |
|
161 | + * @param int $topic_id |
|
162 | + * @param \blitze\content\model\entity\type $entity |
|
163 | + * @param array $update_count |
|
164 | + * @param array $topic_data_overwrite |
|
165 | + * @return array |
|
166 | + * @throws \Exception |
|
167 | + */ |
|
168 | 168 | protected function display_topic($topic_id, \blitze\content\model\entity\type $entity, array &$update_count, array $topic_data_overwrite) |
169 | 169 | { |
170 | 170 | $forum_id = $entity->get_forum_id(); |
@@ -23,17 +23,17 @@ |
||
23 | 23 | /** @var \blitze\content\model\mapper_factory */ |
24 | 24 | protected $mapper_factory; |
25 | 25 | |
26 | - /** @var bool */ |
|
27 | - private $redirect; |
|
26 | + /** @var bool */ |
|
27 | + private $redirect; |
|
28 | 28 | |
29 | - /** |
|
29 | + /** |
|
30 | 30 | * Constructor |
31 | 31 | * |
32 | 32 | * @param \phpbb\cache\driver\driver_interface $cache Cache object |
33 | 33 | * @param \blitze\content\services\types $content_types Content types object |
34 | 34 | * @param \blitze\content\model\mapper_factory $mapper_factory Mapper factory object |
35 | 35 | * @param boolean $redirect Used for testing |
36 | - */ |
|
36 | + */ |
|
37 | 37 | public function __construct(\phpbb\cache\driver\driver_interface $cache, \blitze\content\services\types $content_types, \blitze\content\model\mapper_factory $mapper_factory, $redirect = true) |
38 | 38 | { |
39 | 39 | $this->cache = $cache; |
@@ -35,13 +35,13 @@ discard block |
||
35 | 35 | /** @var \blitze\sitemaker\model\mapper_factory */ |
36 | 36 | protected $sitemaker_mapper_factory; |
37 | 37 | |
38 | - /** @var bool */ |
|
39 | - private $auto_refresh; |
|
38 | + /** @var bool */ |
|
39 | + private $auto_refresh; |
|
40 | 40 | |
41 | - /** @var bool */ |
|
42 | - private $trigger_error; |
|
41 | + /** @var bool */ |
|
42 | + private $trigger_error; |
|
43 | 43 | |
44 | - /** |
|
44 | + /** |
|
45 | 45 | * Constructor |
46 | 46 | * |
47 | 47 | * @param \phpbb\cache\driver\driver_interface $cache Cache object |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param \blitze\sitemaker\model\mapper_factory $sitemaker_mapper_factory Sitemaker Mapper factory object |
54 | 54 | * @param bool $auto_refresh Used during testing |
55 | 55 | * @param bool $trigger_error Used during testing |
56 | - */ |
|
56 | + */ |
|
57 | 57 | public function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\language\language $language, \phpbb\request\request_interface $request, \blitze\content\services\types $content_types, \blitze\sitemaker\services\forum\manager $forum_manager, \blitze\content\model\mapper_factory $content_mapper_factory, \blitze\sitemaker\model\mapper_factory $sitemaker_mapper_factory, $auto_refresh = true, $trigger_error = true) |
58 | 58 | { |
59 | 59 | $this->cache = $cache; |
@@ -47,10 +47,10 @@ discard block |
||
47 | 47 | /** @var string */ |
48 | 48 | protected $php_ext; |
49 | 49 | |
50 | - /** @var bool */ |
|
51 | - private $auto_refresh; |
|
50 | + /** @var bool */ |
|
51 | + private $auto_refresh; |
|
52 | 52 | |
53 | - /** |
|
53 | + /** |
|
54 | 54 | * Constructor |
55 | 55 | * |
56 | 56 | * @param \phpbb\auth\auth $auth Auth object |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param string $phpbb_admin_path Relative admin root path |
66 | 66 | * @param string $php_ext php file extension |
67 | 67 | * @param boolean $auto_refresh Used for testing |
68 | - */ |
|
68 | + */ |
|
69 | 69 | public function __construct(\phpbb\auth\auth $auth, \phpbb\cache\driver\driver_interface $cache, \phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\language\language $language, \phpbb\request\request_interface $request, \blitze\content\services\types $content_types, \blitze\sitemaker\services\forum\manager $forum_manager, \blitze\content\model\mapper_factory $mapper_factory, $phpbb_admin_path, $php_ext, $auto_refresh = true) |
70 | 70 | { |
71 | 71 | $this->auth = $auth; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * Constructor |
22 | 22 | * |
23 | 23 | * @param \phpbb\auth\auth $auth Auth object |
24 | - * @param \phpbb\controller\helper $controller_helper Controller Helper object |
|
24 | + * @param \phpbb\controller\helper $controller_helper Controller Helper object |
|
25 | 25 | * @param \phpbb\language\language $language Language Object |
26 | 26 | * @param \phpbb\event\dispatcher_interface $phpbb_dispatcher Event dispatcher object |
27 | 27 | * @param \phpbb\template\template $template Template object |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @param \blitze\content\services\views\views_factory $views_factory Views factory object |
32 | 32 | * @param \blitze\content\services\types $content_types Content types object |
33 | 33 | * @param \blitze\content\model\mapper_factory $mapper_factory Mapper factory object |
34 | - */ |
|
34 | + */ |
|
35 | 35 | public function __construct(\phpbb\auth\auth $auth, \phpbb\controller\helper $controller_helper, \phpbb\event\dispatcher_interface $phpbb_dispatcher, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \blitze\sitemaker\services\auto_lang $auto_lang, \blitze\content\services\form\fields_factory $fields_factory, \blitze\content\services\views\views_factory $views_factory, \blitze\content\services\types $content_types, \blitze\content\model\mapper_factory $mapper_factory) |
36 | 36 | { |
37 | 37 | parent::__construct($auth, $controller_helper, $phpbb_dispatcher, $language, $template, $user, $auto_lang, $fields_factory, $views_factory); |