@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * @param \blitze\content\services\topic\blocks_factory $topic_blocks_factory Topic blocks factory object |
| 32 | 32 | * @param \phpbb\config\config $config Config object |
| 33 | 33 | * @param \blitze\content\services\types $content_types Content types object |
| 34 | - */ |
|
| 34 | + */ |
|
| 35 | 35 | 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\config\config $config, \blitze\content\services\types $content_types) |
| 36 | 36 | { |
| 37 | 37 | parent::__construct($phpbb_dispatcher, $language, $pagination, $template, $fields, $forum, $helper, $quickmod, $topic_blocks_factory); |
@@ -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); |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | $l_edited_by = $edit_reason = ''; |
| 268 | 268 | if (($row['post_edit_count'] && $this->config['display_last_edited']) || $row['post_edit_reason']) |
| 269 | 269 | { |
| 270 | - $display_username = $users_cache[$row['poster_id']]['username_full']; |
|
| 270 | + $display_username = $users_cache[$row['poster_id']]['username_full']; |
|
| 271 | 271 | $l_edited_by = $this->language->lang('EDITED_TIMES_TOTAL', (int) $row['post_edit_count'], $display_username, $this->user->format_date($row['post_edit_time'], false, true)); |
| 272 | 272 | $edit_reason = $row['post_edit_reason']; |
| 273 | 273 | } |
@@ -290,8 +290,8 @@ discard block |
||
| 290 | 290 | |
| 291 | 291 | if ($s_post_deleted && $row['post_delete_user']) |
| 292 | 292 | { |
| 293 | - $display_postername = $users_cache[$row['poster_id']]['username_full']; |
|
| 294 | - $display_username = $users_cache[$row['post_delete_user']]['username_full']; |
|
| 293 | + $display_postername = $users_cache[$row['poster_id']]['username_full']; |
|
| 294 | + $display_username = $users_cache[$row['post_delete_user']]['username_full']; |
|
| 295 | 295 | |
| 296 | 296 | $l_deleted_message = $this->get_delete_message($row, $display_postername, $display_username); |
| 297 | 297 | $l_deleted_by = $this->language->lang('DELETED_INFORMATION', $display_username, $this->user->format_date($row['post_delete_time'], false, true)); |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | $content = preg_replace('/((?:\?|&)sid=[a-z0-9]+)/', '', $content); |
| 126 | 126 | |
| 127 | 127 | // Remove Comments from inline attachments [ia] |
| 128 | - $content = preg_replace('#<dd>(.*?)</dd>#','',$content); |
|
| 128 | + $content = preg_replace('#<dd>(.*?)</dd>#', '', $content); |
|
| 129 | 129 | |
| 130 | 130 | // Replace some entities with their unicode counterpart |
| 131 | 131 | $entities = array( |
@@ -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; |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | $update_count = array(); |
| 177 | 177 | foreach ($topics_data as $topic_id => $topic_data) |
| 178 | 178 | { |
| 179 | - $post_data = array_shift($posts_data[$topic_id]); |
|
| 179 | + $post_data = array_shift($posts_data[$topic_id]); |
|
| 180 | 180 | $this->ptemplate->assign_block_vars('topicrow', $this->fields->show($type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info)); |
| 181 | 181 | } |
| 182 | 182 | unset($topics_data, $posts_data, $users_cache, $attachments, $topic_tracking_info); |
@@ -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(); |
@@ -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 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @param \phpbb\language\language $language Language object |
| 24 | 24 | * @param \blitze\content\services\actions\action_handler $action_handler Handles actions |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | public function __construct(\phpbb\language\language $language, \blitze\content\services\actions\action_handler $action_handler) |
| 27 | 27 | { |
| 28 | 28 | $this->language = $language; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @param \phpbb\language\language $language Language object |
| 24 | 24 | * @param \blitze\content\services\actions\action_handler $action_handler Handles actions |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | public function __construct(\phpbb\language\language $language, \blitze\content\services\actions\action_handler $action_handler) |
| 27 | 27 | { |
| 28 | 28 | $this->language = $language; |