Passed
Push — release-2.1 ( 2e48b8...01120d )
by Mathias
06:33
created
Sources/Profile-Modify.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -498,7 +498,7 @@
 block discarded – undo
498 498
 						log_error(sprintf($txt['smiley_set_dir_not_found'], $set_names[array_search($set, $context['smiley_sets'])]));
499 499
 
500 500
 						$context['smiley_sets'] = array_filter($context['smiley_sets'], function($v) use ($set)
501
-							{
501
+						{
502 502
 								return $v != $set;
503 503
 							});
504 504
 					}
Please login to merge, or discard this patch.
Sources/Load.php 1 patch
Braces   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	// Set a list of common functions.
99 99
 	$ent_list = '&(?:#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . '|quot|amp|lt|gt|nbsp);';
100 100
 	$ent_check = empty($modSettings['disableEntityCheck']) ? function($string)
101
-		{
101
+	{
102 102
 			$string = preg_replace_callback('~(&#(\d{1,7}|x[0-9a-fA-F]{1,6});)~', 'entity_fix__callback', $string);
103 103
 			return $string;
104 104
 		} : function($string)
@@ -2147,7 +2147,6 @@  discard block
 block discarded – undo
2147 2147
 		loadLanguage('index+Modifications');
2148 2148
 		$context['template_layers'] = array();
2149 2149
 	}
2150
-
2151 2150
 	else
2152 2151
 	{
2153 2152
 		// Custom templates to load, or just default?
@@ -2525,14 +2524,12 @@  discard block
 block discarded – undo
2525 2524
 				$fileUrl = $settings['default_theme_url'] . '/css/' . $fileName;
2526 2525
 				$filePath = $settings['default_theme_dir'] . '/css/' . $fileName;
2527 2526
 			}
2528
-
2529 2527
 			else
2530 2528
 			{
2531 2529
 				$fileUrl = false;
2532 2530
 				$filePath = false;
2533 2531
 			}
2534 2532
 		}
2535
-
2536 2533
 		else
2537 2534
 		{
2538 2535
 			$fileUrl = $settings[$themeRef . '_url'] . '/css/' . $fileName;
@@ -2639,14 +2636,12 @@  discard block
 block discarded – undo
2639 2636
 				$fileUrl = $settings['default_theme_url'] . '/scripts/' . $fileName;
2640 2637
 				$filePath = $settings['default_theme_dir'] . '/scripts/' . $fileName;
2641 2638
 			}
2642
-
2643 2639
 			else
2644 2640
 			{
2645 2641
 				$fileUrl = false;
2646 2642
 				$filePath = false;
2647 2643
 			}
2648 2644
 		}
2649
-
2650 2645
 		else
2651 2646
 		{
2652 2647
 			$fileUrl = $settings[$themeRef . '_url'] . '/scripts/' . $fileName;
Please login to merge, or discard this patch.
Sources/Subs.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -302,7 +302,6 @@  discard block
 block discarded – undo
302 302
 		$condition = 'id_member IN ({array_int:members})';
303 303
 		$parameters['members'] = $members;
304 304
 	}
305
-
306 305
 	elseif ($members === null)
307 306
 		$condition = '1=1';
308 307
 
@@ -1970,7 +1969,7 @@  discard block
 block discarded – undo
1970 1969
 			'tag' => 'cowsay',
1971 1970
 			'parameters' => array(
1972 1971
 				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
1973
-					{
1972
+				{
1974 1973
 						static $css_added;
1975 1974
 
1976 1975
 						if (empty($css_added))
@@ -1987,7 +1986,7 @@  discard block
 block discarded – undo
1987 1986
 					},
1988 1987
 				),
1989 1988
 				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
1990
-					{
1989
+				{
1991 1990
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
1992 1991
 					},
1993 1992
 				),
@@ -3087,7 +3086,7 @@  discard block
 block discarded – undo
3087 3086
 
3088 3087
 	// Replace away!
3089 3088
 	$message = preg_replace_callback($smileyPregSearch, function($matches) use ($smileyPregReplacements)
3090
-		{
3089
+	{
3091 3090
 			return $smileyPregReplacements[$matches[1]];
3092 3091
 		}, $message);
3093 3092
 }
@@ -3873,7 +3872,6 @@  discard block
 block discarded – undo
3873 3872
 				if (!isset($minSeed) && isset($js_file['options']['seed']))
3874 3873
 					$minSeed = $js_file['options']['seed'];
3875 3874
 			}
3876
-
3877 3875
 			else
3878 3876
 				echo '
3879 3877
 	<script src="', $js_file['fileUrl'], isset($file['options']['seed']) ? $file['options']['seed'] : '', '"', !empty($js_file['options']['async']) ? ' async' : '', !empty($js_file['options']['defer']) ? ' defer' : '', '></script>';
@@ -6026,7 +6024,6 @@  discard block
 block discarded – undo
6026 6024
 			$isWritable = true;
6027 6025
 			break;
6028 6026
 		}
6029
-
6030 6027
 		else
6031 6028
 			@chmod($file, $val);
6032 6029
 	}
Please login to merge, or discard this patch.
Sources/Subs-BoardIndex.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -420,7 +420,7 @@
 block discarded – undo
420 420
 					$board['last_post']['last_post_message'] = sprintf($txt['last_post_message'], $board['last_post']['member']['link'], $board['last_post']['link'], $board['last_post']['time'] > 0 ? timeformat($board['last_post']['time']) : $txt['not_applicable']);
421 421
 			}
422 422
 		}
423
-	else
423
+		else
424 424
 		foreach ($this_category as &$board)
425 425
 		{
426 426
 			if (!empty($moderators[$board['id']]))
Please login to merge, or discard this patch.
Sources/ManagePermissions.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1827,7 +1827,7 @@
 block discarded – undo
1827 1827
 	{
1828 1828
 		// Make sure this is an array of integers
1829 1829
 		$excluded_groups = array_filter((array) $excluded_groups, function ($v)
1830
-			{
1830
+		{
1831 1831
 				return is_int($v) || is_string($v) && (string) intval($v) === $v;
1832 1832
 			});
1833 1833
 
Please login to merge, or discard this patch.