@@ -25,12 +25,12 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * @param array $context |
|
29 | - * @param array $items |
|
30 | - * @param string $field_type |
|
31 | - * @param string $loop_variable |
|
32 | - * @return string |
|
33 | - */ |
|
28 | + * @param array $context |
|
29 | + * @param array $items |
|
30 | + * @param string $field_type |
|
31 | + * @param string $loop_variable |
|
32 | + * @return string |
|
33 | + */ |
|
34 | 34 | public function field_filter(array &$context, $items, $field_type, $loop_variable = '') |
35 | 35 | { |
36 | 36 | $found_fields = array_keys((array) $context['FIELD_TYPES'], $field_type); |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * @param string $content |
|
58 | - * @param int $max_chars |
|
59 | - * @param string $loop_variable |
|
60 | - * @return string |
|
61 | - */ |
|
57 | + * @param string $content |
|
58 | + * @param int $max_chars |
|
59 | + * @param string $loop_variable |
|
60 | + * @return string |
|
61 | + */ |
|
62 | 62 | public function truncate_filter($content, $max_chars = 60, $type = '') |
63 | 63 | { |
64 | 64 | if ($type === 'html') |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $this->set_comments_type($entity->get_comments()); |
107 | 107 | |
108 | 108 | $this->board_url = generate_board_url(true); |
109 | - $this->tpl_name = ($custom_tpl) ? ($tpl_name ?: $this->content_type . '_' . $this->view_mode) : ''; |
|
109 | + $this->tpl_name = ($custom_tpl) ? ($tpl_name ?: $this->content_type . '_' . $this->view_mode) : ''; |
|
110 | 110 | $this->db_fields = $db_fields; |
111 | 111 | |
112 | 112 | return $this; |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | $field_data['field_value'] = &$field_values[$field_name]; |
260 | 260 | $field_data['field_value'] = $this->form_fields[$field_type]->get_field_value($field_data); |
261 | 261 | |
262 | - $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode, $this->view_mode); |
|
262 | + $field_contents = $this->form_fields[$field_type]->display_field($field_data, $tpl_data, $this->display_mode, $this->view_mode); |
|
263 | 263 | $display_data['raw'][$field_name] = $field_data['field_value']; |
264 | 264 | |
265 | 265 | // this essentially hides other fields if the field returns an array |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * @param \blitze\content\services\poll $poll Poll object |
56 | 56 | * @param \blitze\content\services\views\views_factory $views_factory Views handlers |
57 | 57 | * @param \blitze\content\services\comments\factory $comments_factory Comments factory |
58 | - */ |
|
58 | + */ |
|
59 | 59 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\controller\helper $controller, \phpbb\path_helper $path_helper, \phpbb\request\request_interface $request, \phpbb\template\template $template, \phpbb\user $user, \blitze\content\services\types $content_types, \blitze\content\services\feed $feed, \blitze\content\services\poll $poll, \blitze\content\services\views\views_factory $views_factory, \blitze\content\services\comments\factory $comments_factory) |
60 | 60 | { |
61 | 61 | $this->db = $db; |