@@ -52,8 +52,8 @@ |
||
52 | 52 | |
53 | 53 | foreach ($collection as $entity) |
54 | 54 | { |
55 | - /** @var \blitze\content\model\entity\type $entity */ |
|
56 | - $forum_id = $entity->get_forum_id(); |
|
55 | + /** @var \blitze\content\model\entity\type $entity */ |
|
56 | + $forum_id = $entity->get_forum_id(); |
|
57 | 57 | $content_name = $entity->get_content_name(); |
58 | 58 | |
59 | 59 | $types_data['forums'][$forum_id] = $content_name; |
@@ -48,10 +48,10 @@ discard block |
||
48 | 48 | * @param \blitze\content\model\entity\type $entity |
49 | 49 | * @param int $page |
50 | 50 | * @param array $filters |
51 | - * @param array $topic_data_overwrite |
|
51 | + * @param array $topic_data_overwrite |
|
52 | 52 | * @return int |
53 | 53 | */ |
54 | - public function render_index(\blitze\content\model\entity\type $entity, $page, array $filters, array $topic_data_overwrite = array()); |
|
54 | + public function render_index(\blitze\content\model\entity\type $entity, $page, array $filters, array $topic_data_overwrite = array()); |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Show topic details |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param \blitze\content\model\entity\type $entity |
60 | 60 | * @param int $topic_id |
61 | 61 | * @param array $update_count |
62 | - * @param array $topic_data_overwrite |
|
62 | + * @param array $topic_data_overwrite |
|
63 | 63 | * @return array |
64 | 64 | */ |
65 | 65 | public function render_detail(\blitze\content\model\entity\type $entity, $topic_id, array &$update_count, array $topic_data_overwrite = array()); |
@@ -27,7 +27,7 @@ discard block |
||
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); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * @inheritdoc |
64 | 64 | */ |
65 | - public function render_index(\blitze\content\model\entity\type $entity, $page, array $filters, array $topic_data_overwrite = array()) |
|
65 | + public function render_index(\blitze\content\model\entity\type $entity, $page, array $filters, array $topic_data_overwrite = array()) |
|
66 | 66 | { |
67 | 67 | parent::render_index($entity, $page, $filters); |
68 | 68 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * @inheritdoc |
64 | 64 | */ |
65 | 65 | public function render_index(\blitze\content\model\entity\type $entity, $page, array $filters, array $topic_data_overwrite = array()) |
66 | - { |
|
66 | + { |
|
67 | 67 | parent::render_index($entity, $page, $filters); |
68 | 68 | |
69 | 69 | if ($this->request->is_ajax()) |
@@ -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; |
@@ -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 = array_merge( |
144 | 144 | $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info), |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | $this->board_url = generate_board_url(true); |
99 | 99 | $this->display_mode = $view_mode; |
100 | - $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
100 | + $this->tpl_name = ($custom_tpl) ? $tpl_name ?: $this->content_type . '_' . $view_mode : ''; |
|
101 | 101 | $this->view_mode = (in_array($view_mode, array('summary', 'detail'))) ? $view_mode : 'summary'; |
102 | 102 | $this->db_fields = $db_fields; |
103 | 103 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $field_data['field_props'] = array_replace_recursive($this->form_fields[$field_type]->get_default_props(), $field_data['field_props']); |
208 | 208 | $field_data['field_value'] = &$field_values[$field_name]; |
209 | 209 | |
210 | - $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
210 | + $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode); |
|
211 | 211 | |
212 | 212 | // this essentially hides other fields if the field returns an array |
213 | 213 | if (is_array($field_contents)) |
@@ -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)); |