@@ -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; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $this->set_content_fields($view_mode_fields, $entity->get_content_fields()); |
| 102 | 102 | |
| 103 | 103 | $this->board_url = generate_board_url(true); |
| 104 | - $this->tpl_name = ($custom_tpl) ? ($tpl_name ?: $this->content_type . '_' . $view_mode) : ''; |
|
| 104 | + $this->tpl_name = ($custom_tpl) ? ($tpl_name ?: $this->content_type . '_' . $view_mode) : ''; |
|
| 105 | 105 | $this->db_fields = $db_fields; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -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)) |
@@ -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; |