@@ -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(); |
@@ -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; |
@@ -76,8 +76,8 @@ |
||
76 | 76 | { |
77 | 77 | return array( |
78 | 78 | 'size' => 'large', |
79 | - 'maxlength' => '', // input characters |
|
80 | - 'max_chars' => 200, // display characters |
|
79 | + 'maxlength' => '', // input characters |
|
80 | + 'max_chars' => 200, // display characters |
|
81 | 81 | 'editor' => true, |
82 | 82 | ); |
83 | 83 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * @param \blitze\content\services\fields $fields Content fields object |
37 | 37 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
38 | 38 | * @param string $php_ext php file extension |
39 | - */ |
|
39 | + */ |
|
40 | 40 | public function __construct(\phpbb\db\driver\driver_interface $db, \blitze\content\services\types $content_types, \blitze\content\services\fields $fields, $phpbb_root_path, $php_ext) |
41 | 41 | { |
42 | 42 | $this->db = $db; |
@@ -139,7 +139,7 @@ |
||
139 | 139 | |
140 | 140 | foreach ($posts_data as $topic_id => $posts) |
141 | 141 | { |
142 | - $post_data = array_shift($posts); |
|
142 | + $post_data = array_shift($posts); |
|
143 | 143 | $topic_data = $topics_data[$topic_id]; |
144 | 144 | $topic_data = $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info, $topic_data_overwrite, $cp_mode); |
145 | 145 |