Passed
Pull Request — release-2.1 (#6344)
by Jon
04:07
created
Sources/Subs.php 1 patch
Braces   +7 added lines, -10 removed lines patch added patch discarded remove patch
@@ -279,7 +279,6 @@  discard block
 block discarded – undo
279 279
 		$condition = 'id_member IN ({array_int:members})';
280 280
 		$parameters['members'] = $members;
281 281
 	}
282
-
283 282
 	elseif ($members === null)
284 283
 		$condition = '1=1';
285 284
 
@@ -382,11 +381,9 @@  discard block
 block discarded – undo
382 381
 				$val = $val . ' END';
383 382
 				$type = 'raw';
384 383
 			}
385
-
386 384
 			else
387 385
 				$val = alert_count($members, true);
388 386
 		}
389
-
390 387
 		elseif ($type == 'int' && ($val === '+' || $val === '-'))
391 388
 		{
392 389
 			$val = $var . ' ' . $val . ' 1';
@@ -2202,12 +2199,12 @@  discard block
 block discarded – undo
2202 2199
 			'tag' => 'cowsay',
2203 2200
 			'parameters' => array(
2204 2201
 				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2205
-					{
2202
+				{
2206 2203
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2207 2204
 					},
2208 2205
 				),
2209 2206
 				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2210
-					{
2207
+				{
2211 2208
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2212 2209
 					},
2213 2210
 				),
@@ -3305,7 +3302,7 @@  discard block
 block discarded – undo
3305 3302
 
3306 3303
 	// Replace away!
3307 3304
 	$message = preg_replace_callback($smileyPregSearch, function($matches) use ($smileyPregReplacements)
3308
-		{
3305
+	{
3309 3306
 			return $smileyPregReplacements[$matches[1]];
3310 3307
 		}, $message);
3311 3308
 }
@@ -4103,7 +4100,6 @@  discard block
 block discarded – undo
4103 4100
 				if (!isset($minSeed) && isset($js_file['options']['seed']))
4104 4101
 					$minSeed = $js_file['options']['seed'];
4105 4102
 			}
4106
-
4107 4103
 			else
4108 4104
 			{
4109 4105
 				echo '
@@ -6017,7 +6013,8 @@  discard block
 block discarded – undo
6017 6013
 			$zones[$tzkey]['abbr'] = $tzinfo[0]['abbr'];
6018 6014
 			$zones[$tzkey]['dst_type'] = count($tzinfo) > 1 ? 1 : ($tzinfo[0]['isdst'] ? 2 : 0);
6019 6015
 
6020
-			foreach ($tzinfo as $transition) {
6016
+			foreach ($tzinfo as $transition)
6017
+			{
6021 6018
 				$zones[$tzkey]['abbrs'][] = $transition['abbr'];
6022 6019
 			}
6023 6020
 
@@ -6099,7 +6096,8 @@  discard block
 block discarded – undo
6099 6096
 			$desc = implode(', ', array_slice(array_unique($tzvalue['locations']), 0, 5)) . (count($tzvalue['locations']) > 5 ? ', ' . $txt['etc'] : '');
6100 6097
 
6101 6098
 		// We don't want abbreviations like '+03' or '-11'.
6102
-		$abbrs = array_filter($tzvalue['abbrs'], function ($abbr) {
6099
+		$abbrs = array_filter($tzvalue['abbrs'], function ($abbr)
6100
+		{
6103 6101
 			return !strspn($abbr, '+-');
6104 6102
 		});
6105 6103
 		$abbrs = count($abbrs) == count($tzvalue['abbrs']) ? array_unique($abbrs) : array();
@@ -6445,7 +6443,6 @@  discard block
 block discarded – undo
6445 6443
 			$isWritable = true;
6446 6444
 			break;
6447 6445
 		}
6448
-
6449 6446
 		else
6450 6447
 			@chmod($file, $val);
6451 6448
 	}
Please login to merge, or discard this patch.