@@ -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; |
@@ -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 |
@@ -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; |
@@ -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; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * @param \phpbb\controller\helper $helper Helper object |
29 | 29 | * @param \phpbb\request\request_interface $request Request object |
30 | 30 | * @param \blitze\content\services\types $content_types Content types object |
31 | - */ |
|
31 | + */ |
|
32 | 32 | public function __construct(\phpbb\controller\helper $helper, \phpbb\request\request_interface $request, \blitze\content\services\types $content_types) |
33 | 33 | { |
34 | 34 | $this->helper = $helper; |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | |
204 | 204 | $content = $this->fields->build_content(array_change_key_case($post_data, CASE_UPPER)); |
205 | 205 | |
206 | - $text = isset($content['CUSTOM_DISPLAY']) ? $content['CUSTOM_DISPLAY'] : join('', $content['FIELDS']['all']); |
|
206 | + $text = isset($content['CUSTOM_DISPLAY']) ? $content['CUSTOM_DISPLAY'] : join('', $content['FIELDS']['all']); |
|
207 | 207 | } |
208 | 208 | return $text; |
209 | 209 | } |
@@ -418,8 +418,8 @@ discard block |
||
418 | 418 | } |
419 | 419 | else |
420 | 420 | { |
421 | - $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
422 | - $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
421 | + $options[ITEM_UNAPPROVED] = 'CONTENT_STATUS_DISAPPROVE'; |
|
422 | + $options[ITEM_APPROVED] = 'CONTENT_STATUS_APPROVE'; |
|
423 | 423 | } |
424 | 424 | |
425 | 425 | return $options; |