@@ -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 |
@@ -34,12 +34,12 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * Get the url to this item |
|
38 | - * |
|
39 | - * @property int $item_parent_id |
|
40 | - * @property int $item_id |
|
41 | - * @return string URL |
|
42 | - */ |
|
37 | + * Get the url to this item |
|
38 | + * |
|
39 | + * @property int $item_parent_id |
|
40 | + * @property int $item_id |
|
41 | + * @return string URL |
|
42 | + */ |
|
43 | 43 | public function get_url() |
44 | 44 | { |
45 | 45 | if ($type = $this->types->get_forum_type($this->item_parent_id)) |
@@ -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; |