Completed
Push — develop ( 755a17...843010 )
by Daniel
07:33
created
services/form/form.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -197,8 +197,7 @@  discard block
 block discarded – undo
197 197
 			if ($previewing || empty($row['field_props']['is_db_field']))
198 198
 			{
199 199
 				$fields_data[$field] = $value;
200
-			}
201
-			else
200
+			} else
202 201
 			{
203 202
 				$this->db_fields[$field] = $value;
204 203
 			}
@@ -238,14 +237,12 @@  discard block
 block discarded – undo
238 237
 		if (!empty($field_value))
239 238
 		{
240 239
 			$this->errors[] = $obj->validate_field($row);
241
-		}
242
-		else if ($row['field_required'])
240
+		} else if ($row['field_required'])
243 241
 		{
244 242
 			if (!$row['field_mod_only'] || $cp_class === 'mcp')
245 243
 			{
246 244
 				$this->errors[] = $this->language->lang_array('FIELD_REQUIRED', array($row['field_label']));
247
-			}
248
-			else
245
+			} else
249 246
 			{
250 247
 				$req_mod_input = true;
251 248
 			}
Please login to merge, or discard this patch.
services/comments/comments.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -258,8 +258,7 @@  discard block
 block discarded – undo
258 258
 				$prev_posts_count = $this->content_visibility->get_count('topic_posts', $topic_data, $topic_data['forum_id']) - 1;
259 259
 			}
260 260
 			return $prev_posts_count;
261
-		}
262
-		else
261
+		} else
263 262
 		{
264 263
 			return $this->get_prev_posts_count($topic_data['forum_id'], $topic_data['topic_id'], $post_id, $sort_dir) - 1;
265 264
 		}
@@ -290,8 +289,7 @@  discard block
 block discarded – undo
290 289
 		if ($sort_dir == 'd')
291 290
 		{
292 291
 			$sql .= " AND (p.post_time > {$row['post_time']} OR (p.post_time = {$row['post_time']} AND p.post_id >= {$row['post_id']}))";
293
-		}
294
-		else
292
+		} else
295 293
 		{
296 294
 			$sql .= " AND (p.post_time < {$row['post_time']} OR (p.post_time = {$row['post_time']} AND p.post_id <= {$row['post_id']}))";
297 295
 		}
Please login to merge, or discard this patch.
services/fields.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
 			$this->template->assign_vars(array_change_key_case(array_merge($tpl_data, $fields_data), CASE_UPPER));
140 140
 			$this->template->set_filenames(array('content' => $this->tpl_name));
141 141
 			$tpl_data['CUSTOM_DISPLAY'] = $this->template->assign_display('content');
142
-		}
143
-		else
142
+		} else
144 143
 		{
145 144
 			$tpl_data['SEQ_DISPLAY'] = join("\n", $fields_data);
146 145
 		}
Please login to merge, or discard this patch.
services/topic.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -301,8 +301,7 @@
 block discarded – undo
301 301
 		if ($row['post_delete_reason'])
302 302
 		{
303 303
 			return $this->language->lang('POST_DELETED_BY_REASON', $display_postername, $display_username, $this->user->format_date($row['post_delete_time'], false, true), $row['post_delete_reason']);
304
-		}
305
-		else
304
+		} else
306 305
 		{
307 306
 			return $this->language->lang('POST_DELETED_BY', $display_postername, $display_username, $this->user->format_date($row['post_delete_time'], false, true));
308 307
 		}
Please login to merge, or discard this patch.
event/posting.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,8 +160,7 @@
 block discarded – undo
160 160
 			if ($this->build_content)
161 161
 			{
162 162
 				$event['redirect_url'] = $this->builder->get_cp_url();
163
-			}
164
-			else
163
+			} else
165 164
 			{
166 165
 				$topic_url = $this->builder->get_post_url($this->content_type, $event['post_data']);
167 166
 
Please login to merge, or discard this patch.