Completed
Branch develop (3861a6)
by Daniel
04:23
created
services/form/field/textarea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 
161 161
 		display_custom_bbcodes();
162 162
 
163
-		$bbcode_status	= ($this->config['allow_bbcode'] && $this->auth->acl_get('f_bbcode', $forum_id)) ? true : false;
163
+		$bbcode_status = ($this->config['allow_bbcode'] && $this->auth->acl_get('f_bbcode', $forum_id)) ? true : false;
164 164
 
165 165
 		$dataref = $this->template_context->get_data_ref();
166 166
 		$this->ptemplate->assign_block_vars_array('custom_tags', (isset($dataref['custom_tags'])) ? $dataref['custom_tags'] : array());
Please login to merge, or discard this patch.
services/form/field/checkbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	public function get_field_value($name, $default)
18 18
 	{
19 19
 		$default = is_array($default) ? $default : explode("\n", $default);
20
-		$value =  $this->request->variable($name, $default, true);
20
+		$value = $this->request->variable($name, $default, true);
21 21
 
22 22
 		if (empty($value) && $this->request->server('REQUEST_METHOD') !== 'POST')
23 23
 		{
Please login to merge, or discard this patch.
services/form/field/choice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 		foreach ($data['field_settings']['field_options'] as $value => $label)
71 71
 		{
72 72
 			$this->ptemplate->assign_block_vars('option', array(
73
-				'ID'		=> 'field-'. $name . '-' . $count,
73
+				'ID'		=> 'field-' . $name . '-' . $count,
74 74
 				'LABEL'		=> $this->language->lang($label),
75 75
 				'SELECTED'	=> (in_array($value, $selected, true)) ? true : false,
76 76
 				'VALUE'		=> $value
Please login to merge, or discard this patch.
services/topic.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 		$l_edited_by = $edit_reason = '';
212 212
 		if (($row['post_edit_count'] && $this->config['display_last_edited']) || $row['post_edit_reason'])
213 213
 		{
214
-			$display_username	= $users_cache[$row['poster_id']]['username_full'];
214
+			$display_username = $users_cache[$row['poster_id']]['username_full'];
215 215
 			$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));
216 216
 			$edit_reason = $row['post_edit_reason'];
217 217
 		}
@@ -232,8 +232,8 @@  discard block
 block discarded – undo
232 232
 		$l_deleted_by = $delete_reason = $l_deleted_message = '';
233 233
 		if ($row['post_visibility'] === ITEM_DELETED && $row['post_delete_user'])
234 234
 		{
235
-			$display_postername	= $users_cache[$row['poster_id']]['username_full'];
236
-			$display_username	= $users_cache[$row['post_delete_user']]['username_full'];
235
+			$display_postername = $users_cache[$row['poster_id']]['username_full'];
236
+			$display_username = $users_cache[$row['post_delete_user']]['username_full'];
237 237
 
238 238
 			if ($row['post_delete_reason'])
239 239
 			{
Please login to merge, or discard this patch.
services/fields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
 		{
169 169
 			$field_type		= $row['field_type'];
170 170
 			$field_value	= &$post_field_data[$field_name];
171
-			$field_contents	= $this->form_fields[$field_type]->display_field($field_value, $this->view_mode, $tpl_data, $row);
171
+			$field_contents = $this->form_fields[$field_type]->display_field($field_value, $this->view_mode, $tpl_data, $row);
172 172
 
173 173
 			// this essentially hides other fields if the field returns an array
174 174
 			if (is_array($field_contents))
Please login to merge, or discard this patch.
services/comments.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
 
183 183
 				$poll = array();
184 184
 				$uid = $bitfield = $options = '';
185
-				$allow_bbcode	= ($this->config['allow_bbcode']) ? true : false;
186
-				$allow_smilies	= ($this->config['allow_smilies']) ? true : false;
187
-				$allow_urls		= ($this->config['allow_post_links']) ? true : false;
185
+				$allow_bbcode = ($this->config['allow_bbcode']) ? true : false;
186
+				$allow_smilies = ($this->config['allow_smilies']) ? true : false;
187
+				$allow_urls = ($this->config['allow_post_links']) ? true : false;
188 188
 
189 189
 				generate_text_for_storage($message, $uid, $bitfield, $options, $allow_bbcode, $allow_urls, $allow_smilies);
190 190
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 				submit_post($action, $topic_data['topic_title'], $this->user->data['username'], POST_NORMAL, $poll, $post_data);
207 207
 
208 208
 				$post_id = $post_data['post_id'];
209
-				$redirect_url = $current_page . ((strpos($current_page, '?') === false) ? '?' : '&')  . "p=$post_id#p$post_id";
209
+				$redirect_url = $current_page . ((strpos($current_page, '?') === false) ? '?' : '&') . "p=$post_id#p$post_id";
210 210
 				$message = $this->user->lang['COMMENT_POSTED'] . '<br /><br />' . sprintf($this->user->lang['RETURN_PAGE'], '<a href="' . $redirect_url . '">', '</a>');
211 211
 
212 212
 				meta_refresh(3, $redirect_url);
Please login to merge, or discard this patch.
services/actions/type/save.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 	 * @param \blitze\content\model\entity\type $unsaved_entity
109 109
 	 * @return void
110 110
 	 */
111
-	protected function handle_content_type($type, \blitze\content\model\entity\type &$unsaved_entity)
111
+	protected function handle_content_type($type, \blitze\content\model\entity\type & $unsaved_entity)
112 112
 	{
113 113
 		$forum_perm_from = $this->request->variable('copy_forum_perm', 0);
114 114
 
Please login to merge, or discard this patch.
services/actions/topic/moderate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 		}
74 74
 		else
75 75
 		{
76
-			$message =  $this->language->lang('INVALID_REQUEST', $action);
76
+			$message = $this->language->lang('INVALID_REQUEST', $action);
77 77
 			trigger_error($message . '<br /><br />' . $this->language->lang('RETURN_PAGE', '<a href="' . $u_action . '">', '</a>'));
78 78
 		}
79 79
 	}
Please login to merge, or discard this patch.
services/actions/topic/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
 	 */
207 207
 	protected function init_ucp_mode(array $content_types, array &$sql_where_array)
208 208
 	{
209
-		$sql_where_array[] =  't.topic_poster = ' . (int) $this->user->data['user_id'];
209
+		$sql_where_array[] = 't.topic_poster = ' . (int) $this->user->data['user_id'];
210 210
 
211 211
 		// list all content types that the user can post in
212 212
 		$postable_forums = array_intersect_key($this->content_forums, $this->auth->acl_getf('f_post', true));
Please login to merge, or discard this patch.