Passed
Pull Request — release-2.1 (#5502)
by Michael
04:33
created
Sources/Subs-Db-mysql.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -975,7 +975,7 @@
 block discarded – undo
975 975
 	else
976 976
 	{
977 977
 		$return = array();
978
-		while($row = mysqli_fetch_assoc($request))
978
+		while ($row = mysqli_fetch_assoc($request))
979 979
 			$return[] = $row;
980 980
 	}
981 981
 	return !empty($return) ? $return : array();
Please login to merge, or discard this patch.
Sources/ManageMembergroups.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
 				);
502 502
 
503 503
 				$insert = array();
504
-				foreach ( $changed_boards[$board_action] as $board_id)
504
+				foreach ($changed_boards[$board_action] as $board_id)
505 505
 					$insert[] = array($id_group, $board_id, $board_action == 'allow' ? 0 : 1);
506 506
 
507 507
 				$smcFunc['db_insert']('insert',
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
 					);
852 852
 
853 853
 					$insert = array();
854
-					foreach ( $changed_boards[$board_action] as $board_id)
854
+					foreach ($changed_boards[$board_action] as $board_id)
855 855
 						$insert[] = array((int) $_REQUEST['group'], $board_id, $board_action == 'allow' ? 0 : 1);
856 856
 
857 857
 					$smcFunc['db_insert']('insert',
Please login to merge, or discard this patch.
Themes/default/ManageMembergroups.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 	<script>
389 389
 		function swapPostGroup(isChecked)
390 390
 		{
391
-			var is_moderator_group = ', (int)$context['is_moderator_group'], ';
391
+			var is_moderator_group = ', (int) $context['is_moderator_group'], ';
392 392
 			var group_type = ', $context['group']['type'], ';
393 393
 			var min_posts_text = document.getElementById(\'min_posts_text\');
394 394
 			var group_desc_text = document.getElementById(\'group_desc_text\');
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 		if (empty($modSettings['deny_boards_access']))
454 454
 			echo '
455 455
 									<li class="category">
456
-										<a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \''.$form_id.'\'); return false;"><strong>', $category['name'], '</strong></a>
456
+										<a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'' . $form_id . '\'); return false;"><strong>', $category['name'], '</strong></a>
457 457
 										<ul>';
458 458
 		else
459 459
 			echo '
Please login to merge, or discard this patch.
Themes/default/Profile.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1728,7 +1728,7 @@
 block discarded – undo
1728 1728
 		{
1729 1729
 			// Avoid double separators and empty titled sections
1730 1730
 			$empty_section = true;
1731
-			for ($j=$i+1; $j <= count($context['theme_options']); $j++)
1731
+			for ($j = $i + 1; $j <= count($context['theme_options']); $j++)
1732 1732
 			{
1733 1733
 				// Found another separator, so we're done
1734 1734
 				if (!is_array($context['theme_options'][$j]))
Please login to merge, or discard this patch.
Sources/SplitTopics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 
144 144
 	// Redirect to the selector if they chose selective.
145 145
 	if ($_POST['step2'] == 'selective')
146
-		redirectexit ('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0');
146
+		redirectexit('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0');
147 147
 
148 148
 	$_POST['at'] = (int) $_POST['at'];
149 149
 	$messagesToBeSplit = array();
Please login to merge, or discard this patch.