Passed
Push — release-2.1 ( 908430...ab1855 )
by Mathias
11:01 queued 11s
created
other/install.php 1 patch
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@  discard block
 block discarded – undo
40 40
 	'mysql' => array(
41 41
 		'name' => 'MySQL',
42 42
 		'version' => '5.6.0',
43
-		'version_check' => function() {
43
+		'version_check' => function()
44
+		{
44 45
 			global $db_connection;
45 46
 			if (!function_exists('mysqli_fetch_row'))
46 47
 				return false;
@@ -56,7 +57,8 @@  discard block
 block discarded – undo
56 57
 			return true;
57 58
 		},
58 59
 		'utf8_version' => '5.0.22',
59
-		'utf8_version_check' => function() {
60
+		'utf8_version_check' => function()
61
+		{
60 62
 			global $db_connection;
61 63
 			return mysqli_get_server_info($db_connection);
62 64
 		},
@@ -70,7 +72,8 @@  discard block
 block discarded – undo
70 72
 	'postgresql' => array(
71 73
 		'name' => 'PostgreSQL',
72 74
 		'version' => '9.6',
73
-		'version_check' => function() {
75
+		'version_check' => function()
76
+		{
74 77
 			$request = pg_query('SELECT version()');
75 78
 			list ($version) = pg_fetch_row($request);
76 79
 			list($pgl, $version) = explode(' ', $version);
@@ -90,7 +93,8 @@  discard block
 block discarded – undo
90 93
 				return false;
91 94
 		},
92 95
 		'utf8_version' => '8.0',
93
-		'utf8_version_check' => function (){
96
+		'utf8_version_check' => function ()
97
+		{
94 98
 			$request = pg_query('SELECT version()');
95 99
 			list ($version) = pg_fetch_row($request);
96 100
 			list($pgl, $version) = explode(' ', $version);
@@ -995,7 +999,7 @@  discard block
 block discarded – undo
995 999
 		{
996 1000
 			$row = $smcFunc['db_fetch_assoc']($result);
997 1001
 			if ($row['standard_conforming_strings'] !== 'on')
998
-				{
1002
+			{
999 1003
 					$incontext['continue'] = 0;
1000 1004
 					$incontext['error'] = $txt['error_pg_scs'];
1001 1005
 				}
Please login to merge, or discard this patch.
other/upgrade.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@  discard block
 block discarded – undo
41 41
 	'mysql' => array(
42 42
 		'name' => 'MySQL',
43 43
 		'version' => '5.6.0',
44
-		'version_check' => function() {
44
+		'version_check' => function()
45
+		{
45 46
 			global $db_connection;
46 47
 			if (!function_exists('mysqli_fetch_row'))
47 48
 				return false;
@@ -52,7 +53,8 @@  discard block
 block discarded – undo
52 53
 	'postgresql' => array(
53 54
 		'name' => 'PostgreSQL',
54 55
 		'version' => '9.6',
55
-		'version_check' => function() {
56
+		'version_check' => function()
57
+		{
56 58
 			if (!function_exists('pg_version'))
57 59
 				return false;
58 60
 			$version = pg_version();
Please login to merge, or discard this patch.
Sources/Recent.php 1 patch
Braces   -1 removed lines patch added patch discarded remove patch
@@ -1289,7 +1289,6 @@
 block discarded – undo
1289 1289
 			if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
1290 1290
 				$pages .= sprintf(strtr($settings['page_index']['page'], array('{URL}' => $scripturl . '?topic=' . $row['id_topic'] . '.0;all')), '', $txt['all']);
1291 1291
 		}
1292
-
1293 1292
 		else
1294 1293
 			$pages = '';
1295 1294
 
Please login to merge, or discard this patch.
Sources/ManageMaintenance.php 1 patch
Braces   -1 removed lines patch added patch discarded remove patch
@@ -2214,7 +2214,6 @@
 block discarded – undo
2214 2214
 		$hookData['pureFunc'] = $hookData['method'];
2215 2215
 		$hookData['call'] = $modFunc;
2216 2216
 	}
2217
-
2218 2217
 	else
2219 2218
 		$hookData['call'] = $hookData['pureFunc'] = $modFunc;
2220 2219
 
Please login to merge, or discard this patch.
Sources/Subs.php 1 patch
Braces   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -280,7 +280,6 @@  discard block
 block discarded – undo
280 280
 		$condition = 'id_member IN ({array_int:members})';
281 281
 		$parameters['members'] = $members;
282 282
 	}
283
-
284 283
 	elseif ($members === null)
285 284
 		$condition = '1=1';
286 285
 
@@ -383,11 +382,9 @@  discard block
 block discarded – undo
383 382
 				$val = $val . ' END';
384 383
 				$type = 'raw';
385 384
 			}
386
-
387 385
 			else
388 386
 				$val = alert_count($members, true);
389 387
 		}
390
-
391 388
 		elseif ($type == 'int' && ($val === '+' || $val === '-'))
392 389
 		{
393 390
 			$val = $var . ' ' . $val . ' 1';
@@ -2344,12 +2341,12 @@  discard block
 block discarded – undo
2344 2341
 			'tag' => 'cowsay',
2345 2342
 			'parameters' => array(
2346 2343
 				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2347
-					{
2344
+				{
2348 2345
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2349 2346
 					},
2350 2347
 				),
2351 2348
 				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2352
-					{
2349
+				{
2353 2350
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2354 2351
 					},
2355 2352
 				),
@@ -2711,7 +2708,8 @@  discard block
 block discarded – undo
2711 2708
 
2712 2709
 							foreach (array('path', 'query', 'fragment') as $part)
2713 2710
 							{
2714
-								switch ($part) {
2711
+								switch ($part)
2712
+								{
2715 2713
 									case 'path':
2716 2714
 										$part_disallowed_chars = '\h\v<>' . $bracket_quote_chars . $excluded_trailing_chars . '/#&';
2717 2715
 										$part_excluded_trailing_chars = str_replace('?', '', $excluded_trailing_chars);
@@ -3048,7 +3046,9 @@  discard block
 block discarded – undo
3048 3046
 			$look_for = strtolower(substr($message, $pos + 2, $pos2 - $pos - 2));
3049 3047
 
3050 3048
 			// A closing tag that doesn't match any open tags? Skip it.
3051
-			if (!in_array($look_for, array_map(function($code) { return $code['tag']; }, $open_tags)))
3049
+			if (!in_array($look_for, array_map(function($code)
3050
+			{
3051
+return $code['tag']; }, $open_tags)))
3052 3052
 				continue;
3053 3053
 
3054 3054
 			$to_close = array();
@@ -4588,7 +4588,6 @@  discard block
 block discarded – undo
4588 4588
 				if (!isset($minSeed) && isset($js_file['options']['seed']))
4589 4589
 					$minSeed = $js_file['options']['seed'];
4590 4590
 			}
4591
-
4592 4591
 			else
4593 4592
 			{
4594 4593
 				echo '
@@ -6513,7 +6512,8 @@  discard block
 block discarded – undo
6513 6512
 			$zones[$tzkey]['tzid'] = $tzid;
6514 6513
 			$zones[$tzkey]['dst_type'] = count($tzinfo) > 1 ? 1 : ($tzinfo[0]['isdst'] ? 2 : 0);
6515 6514
 
6516
-			foreach ($tzinfo as $transition) {
6515
+			foreach ($tzinfo as $transition)
6516
+			{
6517 6517
 				$zones[$tzkey]['abbrs'][] = $transition['abbr'];
6518 6518
 			}
6519 6519
 
@@ -7035,7 +7035,6 @@  discard block
 block discarded – undo
7035 7035
 			$isWritable = true;
7036 7036
 			break;
7037 7037
 		}
7038
-
7039 7038
 		else
7040 7039
 			@chmod($file, $val);
7041 7040
 	}
@@ -8125,7 +8124,8 @@  discard block
 block discarded – undo
8125 8124
 	$replaceWith = array();
8126 8125
 
8127 8126
 	if (!empty($matches[1]))
8128
-		foreach ($matches[1] as $token) {
8127
+		foreach ($matches[1] as $token)
8128
+		{
8129 8129
 			$toFind[] = '{' . $token . '}';
8130 8130
 			$replaceWith[] = isset($txt[$token]) ? $txt[$token] : $token;
8131 8131
 		}
Please login to merge, or discard this patch.
Sources/Search.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1107,7 +1107,7 @@
 block discarded – undo
1107 1107
 						'left_join' => array(),
1108 1108
 						'where' => array(
1109 1109
 							't.id_redirect_topic = {int:not_redirected}',
1110
-						    't.redirect_expires = {int:never_expires}',
1110
+							't.redirect_expires = {int:never_expires}',
1111 1111
 						),
1112 1112
 					);
1113 1113
 
Please login to merge, or discard this patch.