@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public function get_field_value(array $data) |
| 57 | 57 | { |
| 58 | 58 | $default = is_array($data['field_value']) ? $data['field_value'] : explode("\n", $data['field_value']); |
| 59 | - $value = $this->request->variable($data['field_name'], array(0 => '')); |
|
| 59 | + $value = $this->request->variable($data['field_name'], array(0 => '')); |
|
| 60 | 60 | return $value ?: $default; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | foreach ($choices as $value => $option) |
| 98 | 98 | { |
| 99 | 99 | $options[] = array( |
| 100 | - 'id' => 'smc-'. $name . '-' . $count, |
|
| 100 | + 'id' => 'smc-' . $name . '-' . $count, |
|
| 101 | 101 | 'label' => $this->language->lang($option), |
| 102 | 102 | 'selected' => (int) (in_array($value, $selected)), |
| 103 | 103 | 'value' => $value, |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $this->fields->prepare_to_show($entity, array($post_data['topic_id']), $entity->$fields_accessor(), $entity->$template_accessor(), $view); |
| 209 | 209 | $content = $this->fields->build_content(array_change_key_case($post_data, CASE_UPPER)); |
| 210 | 210 | |
| 211 | - $text = $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']); |
|
| 211 | + $text = $content['CUSTOM_DISPLAY'] ?: join('', $content['FIELDS']['all']); |
|
| 212 | 212 | } |
| 213 | 213 | return $text; |
| 214 | 214 | } |
@@ -404,8 +404,8 @@ discard block |
||
| 404 | 404 | } |
| 405 | 405 | else |
| 406 | 406 | { |
| 407 | - $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
| 408 | - $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
| 407 | + $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
| 408 | + $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | return $options; |
@@ -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(); |
@@ -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 | |