@@ -33,7 +33,7 @@ |
||
33 | 33 | * @param \phpbb\language\language $language Language object |
34 | 34 | * @param \blitze\content\services\types $content_types Content types object |
35 | 35 | * @param string $php_ext php file extension |
36 | - */ |
|
36 | + */ |
|
37 | 37 | public function __construct(\phpbb\controller\helper $helper, \phpbb\language\language $language, \blitze\content\services\types $content_types, $php_ext) |
38 | 38 | { |
39 | 39 | $this->helper = $helper; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * @param \phpbb\db\driver\driver_interface $db Database connection |
33 | 33 | * @param \phpbb\template\template $template Template object |
34 | 34 | * @param \blitze\content\services\types $content_types Content types object |
35 | - */ |
|
35 | + */ |
|
36 | 36 | public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\template\template $template, \blitze\content\services\types $content_types) |
37 | 37 | { |
38 | 38 | $this->config = $config; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * @param \blitze\content\services\feed $feed Feed object |
55 | 55 | * @param \blitze\content\services\poll $poll Poll object |
56 | 56 | * @param \blitze\content\services\views\views_factory $views_factory Views handlers |
57 | - */ |
|
57 | + */ |
|
58 | 58 | 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\types $content_types, \blitze\content\services\feed $feed, \blitze\content\services\poll $poll, \blitze\content\services\views\views_factory $views_factory) |
59 | 59 | { |
60 | 60 | $this->db = $db; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * @param \blitze\content\services\quickmod $quickmod Quick moderator tools |
28 | 28 | * @param \blitze\content\services\topic\blocks_factory $topic_blocks_factory Topic blocks factory object |
29 | 29 | * @param \phpbb\request\request_interface $request Request object |
30 | - */ |
|
30 | + */ |
|
31 | 31 | 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, \blitze\content\services\topic\blocks_factory $topic_blocks_factory, \phpbb\request\request_interface $request) |
32 | 32 | { |
33 | 33 | parent::__construct($phpbb_dispatcher, $language, $pagination, $template, $fields, $forum, $helper, $quickmod, $topic_blocks_factory); |
@@ -212,8 +212,8 @@ |
||
212 | 212 | } |
213 | 213 | |
214 | 214 | /** |
215 | - * {@inheritdoc} |
|
216 | - */ |
|
215 | + * {@inheritdoc} |
|
216 | + */ |
|
217 | 217 | public function to_db() |
218 | 218 | { |
219 | 219 | $db_data = parent::to_db(); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @param \phpbb\template\template $template Template object |
49 | 49 | * @param \phpbb\user $user User object |
50 | 50 | * @param string $php_ext php file extension |
51 | - */ |
|
51 | + */ |
|
52 | 52 | public function __construct(\phpbb\config\config $config, \phpbb\controller\helper $controller_helper, \phpbb\language\language $language, \phpbb\symfony_request $symfony_request, \phpbb\template\template $template, \phpbb\user $user, $php_ext) |
53 | 53 | { |
54 | 54 | $this->config = $config; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | extract($this->phpbb_dispatcher->trigger_event('blitze.content.fields.set_values', compact($vars))); |
97 | 97 | |
98 | 98 | $this->board_url = generate_board_url(true); |
99 | - $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
99 | + $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
100 | 100 | $this->db_fields = $db_fields; |
101 | 101 | |
102 | 102 | $this->content_type = $entity->get_content_name(); |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | $field_data['field_props'] = array_replace_recursive($this->form_fields[$field_type]->get_default_props(), $field_data['field_props']); |
221 | 221 | $field_data['field_value'] = &$field_values[$field_name]; |
222 | 222 | |
223 | - $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
223 | + $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
224 | 224 | |
225 | 225 | // this essentially hides other fields if the field returns an array |
226 | 226 | if (is_array($field_contents)) |
@@ -138,7 +138,7 @@ |
||
138 | 138 | |
139 | 139 | foreach ($posts_data as $topic_id => $posts) |
140 | 140 | { |
141 | - $post_data = array_shift($posts); |
|
141 | + $post_data = array_shift($posts); |
|
142 | 142 | $topic_data = $topics_data[$topic_id]; |
143 | 143 | $topic_data = $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info, $topic_data_overwrite); |
144 | 144 |