Passed
Pull Request — release-2.1 (#7106)
by John
06:22
created
other/install.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 				return false;
91 91
 		},
92 92
 		'utf8_version' => '8.0',
93
-		'utf8_version_check' => function (){
93
+		'utf8_version_check' => function() {
94 94
 			$request = pg_query('SELECT version()');
95 95
 			list ($version) = pg_fetch_row($request);
96 96
 			list($pgl, $version) = explode(' ', $version);
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
 	$incontext['continue'] = 1;
982 982
 
983 983
 	// Check Postgres setting
984
-	if ( $db_type === 'postgresql')
984
+	if ($db_type === 'postgresql')
985 985
 	{
986 986
 		load_database();
987 987
 		$result = $smcFunc['db_query']('', '
Please login to merge, or discard this 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.
Sources/ManageMaintenance.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2060,7 +2060,7 @@
 block discarded – undo
2060 2060
 		new RecursiveIteratorIterator(
2061 2061
 			new RecursiveCallbackFilterIterator(
2062 2062
 				new RecursiveDirectoryIterator($dirname, FilesystemIterator::UNIX_PATHS),
2063
-				function ($fileInfo, $currentFile, $iterator)
2063
+				function($fileInfo, $currentFile, $iterator)
2064 2064
 				{
2065 2065
 					// Allow recursion
2066 2066
 					if ($iterator->hasChildren())
Please login to merge, or discard this 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.