@@ -238,14 +238,14 @@ |
||
238 | 238 | } |
239 | 239 | } |
240 | 240 | |
241 | - /** |
|
242 | - * When Previewing topic, we show all pages |
|
243 | - * |
|
244 | - * @param int $start |
|
245 | - * @param string $field_name |
|
246 | - * @param array $pages |
|
247 | - * @return mixed |
|
248 | - */ |
|
241 | + /** |
|
242 | + * When Previewing topic, we show all pages |
|
243 | + * |
|
244 | + * @param int $start |
|
245 | + * @param string $field_name |
|
246 | + * @param array $pages |
|
247 | + * @return mixed |
|
248 | + */ |
|
249 | 249 | protected function get_page_content($start, $field_name, array $pages) |
250 | 250 | { |
251 | 251 | $value = trim($pages[$start]); |
@@ -11,28 +11,28 @@ |
||
11 | 11 | |
12 | 12 | class permissions |
13 | 13 | { |
14 | - /** @var \phpbb\auth\auth */ |
|
15 | - protected $auth; |
|
16 | - |
|
17 | - /** @var \phpbb\config\db */ |
|
18 | - protected $config; |
|
19 | - |
|
20 | - /** @var \phpbb\user */ |
|
21 | - protected $user; |
|
22 | - |
|
23 | - /** |
|
24 | - * Constructor |
|
25 | - * |
|
26 | - * @param \phpbb\auth\auth $auth Auth object |
|
27 | - * @param \phpbb\config\db $config Config object |
|
28 | - * @param \phpbb\user $user User object |
|
29 | - */ |
|
30 | - public function __construct(\phpbb\auth\auth $auth, \phpbb\config\db $config, \phpbb\user $user) |
|
31 | - { |
|
32 | - $this->auth = $auth; |
|
33 | - $this->config = $config; |
|
34 | - $this->user = $user; |
|
35 | - } |
|
14 | + /** @var \phpbb\auth\auth */ |
|
15 | + protected $auth; |
|
16 | + |
|
17 | + /** @var \phpbb\config\db */ |
|
18 | + protected $config; |
|
19 | + |
|
20 | + /** @var \phpbb\user */ |
|
21 | + protected $user; |
|
22 | + |
|
23 | + /** |
|
24 | + * Constructor |
|
25 | + * |
|
26 | + * @param \phpbb\auth\auth $auth Auth object |
|
27 | + * @param \phpbb\config\db $config Config object |
|
28 | + * @param \phpbb\user $user User object |
|
29 | + */ |
|
30 | + public function __construct(\phpbb\auth\auth $auth, \phpbb\config\db $config, \phpbb\user $user) |
|
31 | + { |
|
32 | + $this->auth = $auth; |
|
33 | + $this->config = $config; |
|
34 | + $this->user = $user; |
|
35 | + } |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @param array $post_data |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param \phpbb\user $user User object |
26 | 26 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
27 | 27 | * @param string $php_ext php file extension |
28 | - */ |
|
28 | + */ |
|
29 | 29 | public function __construct(\phpbb\auth\auth $auth, \phpbb\config\db $config, \phpbb\user $user, $phpbb_root_path, $php_ext) |
30 | 30 | { |
31 | 31 | parent::__construct($auth, $config, $user); |
@@ -191,11 +191,11 @@ discard block |
||
191 | 191 | return append_sid("{$this->phpbb_root_path}mcp.$this->php_ext", "i=-blitze-content-mcp-content_module&mode=content&do=view&type=$content_type&t=$topic_id"); |
192 | 192 | } |
193 | 193 | |
194 | - /** |
|
195 | - * @param int $forum_id |
|
196 | - * @param int $topic_id |
|
197 | - * @return string |
|
198 | - */ |
|
194 | + /** |
|
195 | + * @param int $forum_id |
|
196 | + * @param int $topic_id |
|
197 | + * @return string |
|
198 | + */ |
|
199 | 199 | public function get_mcp_url($forum_id, $topic_id) |
200 | 200 | { |
201 | 201 | $u_mcp = ''; |
@@ -141,14 +141,14 @@ |
||
141 | 141 | ->build(true, true, false); |
142 | 142 | } |
143 | 143 | |
144 | - /** |
|
145 | - * @param bool $edit_mode |
|
146 | - * @param int $forum_id |
|
147 | - * @param string $type |
|
148 | - * @param \blitze\content\model\entity\type $entity |
|
149 | - * @return array |
|
150 | - * @internal param int $block_id |
|
151 | - */ |
|
144 | + /** |
|
145 | + * @param bool $edit_mode |
|
146 | + * @param int $forum_id |
|
147 | + * @param string $type |
|
148 | + * @param \blitze\content\model\entity\type $entity |
|
149 | + * @return array |
|
150 | + * @internal param int $block_id |
|
151 | + */ |
|
152 | 152 | protected function show_topics($edit_mode, $forum_id, $type, \blitze\content\model\entity\type $entity) |
153 | 153 | { |
154 | 154 | $topics_data = $this->forum->get_topic_data($this->settings['max_topics'], $this->settings['offset_start']); |
@@ -146,7 +146,7 @@ |
||
146 | 146 | $content_type_options = array('' => 'CONTENT_TYPE_ANY'); |
147 | 147 | foreach ($content_types as $type => $entity) |
148 | 148 | { |
149 | - /** @var \blitze\content\model\entity\type $entity */ |
|
149 | + /** @var \blitze\content\model\entity\type $entity */ |
|
150 | 150 | $content_type_options[$entity->get_forum_id()] = $entity->get_content_langname(); |
151 | 151 | } |
152 | 152 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * @param \blitze\content\services\poll $poll Poll object |
51 | 51 | * @param \blitze\content\services\types $content_types Content types object |
52 | 52 | * @param \blitze\content\services\views\views_factory $views_factory Views handlers |
53 | - */ |
|
53 | + */ |
|
54 | 54 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\controller\helper $helper, \phpbb\request\request_interface $request, \phpbb\template\template $template, \phpbb\user $user, \blitze\content\services\comments\comments_interface $comments, \blitze\content\services\poll $poll, \blitze\content\services\types $content_types, \blitze\content\services\views\views_factory $views_factory) |
55 | 55 | { |
56 | 56 | $this->db = $db; |
@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function filter($filter_type, $filter_value, $page) |
97 | 97 | { |
98 | - /** @var \blitze\content\services\views\driver\portal $view_handler */ |
|
99 | - $view_handler = $this->views_factory->get('blitze.content.view.portal'); |
|
98 | + /** @var \blitze\content\services\views\driver\portal $view_handler */ |
|
99 | + $view_handler = $this->views_factory->get('blitze.content.view.portal'); |
|
100 | 100 | $view_handler->render_filter($filter_type, $filter_value, $page); |
101 | 101 | |
102 | 102 | return $this->helper->render($view_handler->get_index_template()); |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | protected $php_ext; |
30 | 30 | |
31 | 31 | /** @var string */ |
32 | - private $type; |
|
32 | + private $type; |
|
33 | 33 | |
34 | - /** |
|
34 | + /** |
|
35 | 35 | * Constructor |
36 | 36 | * |
37 | 37 | * @param \phpbb\db\driver\driver_interface $db Database object |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param \blitze\content\services\fields $fields Content fields object |
40 | 40 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
41 | 41 | * @param string $php_ext php file extension |
42 | - */ |
|
42 | + */ |
|
43 | 43 | public function __construct(\phpbb\db\driver\driver_interface $db, \blitze\content\services\types $content_types, \blitze\content\services\fields $fields, $phpbb_root_path, $php_ext) |
44 | 44 | { |
45 | 45 | $this->db = $db; |
@@ -60,8 +60,8 @@ |
||
60 | 60 | */ |
61 | 61 | public function delete($entity) |
62 | 62 | { |
63 | - /** @var \blitze\content\model\entity\type $entity */ |
|
64 | - parent::delete($entity); |
|
63 | + /** @var \blitze\content\model\entity\type $entity */ |
|
64 | + parent::delete($entity); |
|
65 | 65 | |
66 | 66 | if ($entity instanceof $this->entity_class) |
67 | 67 | { |