Passed
Push — release-2.1 ( e31624...391b74 )
by Mathias
26:03 queued 19:58
created
Sources/Subs.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 			{
380 380
 				$val = 'CASE ';
381 381
 				foreach ($members as $k => $v)
382
-					$val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' ';
382
+					$val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' ';
383 383
 
384 384
 				$val = $val . ' END';
385 385
 				$type = 'raw';
@@ -851,12 +851,12 @@  discard block
 block discarded – undo
851 851
 			// Anything that isn't a specification, punctuation mark, or whitespace.
852 852
 			'~(?<!%)\p{L}|[^\p{L}\p{P}\s]~u',
853 853
 			// Repeated punctuation marks (except %), possibly separated by whitespace.
854
-			'~(?'.'>([^%\P{P}])\s*(?=\1))*~u',
855
-			'~([^%\P{P}])(?'.'>\1(?!$))*~u',
854
+			'~(?' . '>([^%\P{P}])\s*(?=\1))*~u',
855
+			'~([^%\P{P}])(?' . '>\1(?!$))*~u',
856 856
 			// Unwanted trailing punctuation and whitespace.
857
-			'~(?'.'>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
857
+			'~(?' . '>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
858 858
 			// Unwanted opening punctuation and whitespace.
859
-			'~^\s*(?'.'>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
859
+			'~^\s*(?' . '>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
860 860
 			// Runs of horizontal whitespace.
861 861
 			'~\s+~',
862 862
 		),
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
 	{
1164 1164
 		$dates[$tzid . '_' . $timestamp]['results'][$format] = preg_replace_callback(
1165 1165
 			'/\xEE\x84\xA0([\d_]+)(\xEE\x84(?:[\xA1-\xAF]))/',
1166
-			function ($matches)
1166
+			function($matches)
1167 1167
 			{
1168 1168
 				switch ($matches[2])
1169 1169
 				{
@@ -1297,7 +1297,7 @@  discard block
 block discarded – undo
1297 1297
 	elseif (!empty($context['character_set']) && is_callable('mb_decode_numericentity'))
1298 1298
 	{
1299 1299
 		// Get whatever the default replacement character is for this encoding.
1300
-		$substitute = mb_decode_numericentity('&#xFFFD;', array(0xFFFD,0xFFFD,0,0xFFFF), $context['character_set']);
1300
+		$substitute = mb_decode_numericentity('&#xFFFD;', array(0xFFFD, 0xFFFD, 0, 0xFFFF), $context['character_set']);
1301 1301
 	}
1302 1302
 	else
1303 1303
 		$substitute = '?';
@@ -1747,7 +1747,7 @@  discard block
 block discarded – undo
1747 1747
 
1748 1748
 					// parseAttachBBC will return a string ($txt key) rather than dying with a fatal_error. Up to you to decide what to do.
1749 1749
 					if (is_string($currentAttachment))
1750
-						return $data = '<span style="display:inline-block" class="errorbox">' . (!empty($txt[$currentAttachment]) ? $txt[$currentAttachment] : $currentAttachment)  . '</span>';
1750
+						return $data = '<span style="display:inline-block" class="errorbox">' . (!empty($txt[$currentAttachment]) ? $txt[$currentAttachment] : $currentAttachment) . '</span>';
1751 1751
 
1752 1752
 					// We need a display mode.
1753 1753
 					if (empty($params['{display}']))
@@ -1773,7 +1773,7 @@  discard block
 block discarded – undo
1773 1773
 								$returnContext .= '<img src="' . $currentAttachment['href'] . '"' . $alt . $title . ' class="bbc_img">';
1774 1774
 							else
1775 1775
 							{
1776
-								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"': '';
1776
+								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1777 1777
 								$height = !empty($params['{height}']) ? 'height="' . $params['{height}'] . '"' : '';
1778 1778
 								$returnContext .= '<img src="' . $currentAttachment['href'] . ';image"' . $alt . $title . $width . $height . ' class="bbc_img resized"/>';
1779 1779
 							}
@@ -1784,7 +1784,7 @@  discard block
 block discarded – undo
1784 1784
 							$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1785 1785
 							$height = !empty($params['{height}']) ? ' height="' . $params['{height}'] . '"' : '';
1786 1786
 
1787
-							$returnContext .= '<div class="videocontainer"><video controls preload="metadata" src="'. $currentAttachment['href'] . '" playsinline' . $width . $height . '><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : '');
1787
+							$returnContext .= '<div class="videocontainer"><video controls preload="metadata" src="' . $currentAttachment['href'] . '" playsinline' . $width . $height . '><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : '');
1788 1788
 						}
1789 1789
 						// Audio.
1790 1790
 						elseif (strpos($currentAttachment['mime_type'], 'audio/') === 0)
@@ -1792,7 +1792,7 @@  discard block
 block discarded – undo
1792 1792
 							$width = 'max-width:100%; width: ' . (!empty($params['{width}']) ? $params['{width}'] : '400') . 'px;';
1793 1793
 							$height = !empty($params['{height}']) ? 'height: ' . $params['{height}'] . 'px;' : '';
1794 1794
 
1795
-							$returnContext .= (!empty($data) && $data != $currentAttachment['name'] ? $data . ' ' : '') . '<audio controls preload="none" src="'. $currentAttachment['href'] . '" class="bbc_audio" style="vertical-align:middle;' . $width . $height . '"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></audio>';
1795
+							$returnContext .= (!empty($data) && $data != $currentAttachment['name'] ? $data . ' ' : '') . '<audio controls preload="none" src="' . $currentAttachment['href'] . '" class="bbc_audio" style="vertical-align:middle;' . $width . $height . '"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></audio>';
1796 1796
 						}
1797 1797
 						// Anything else.
1798 1798
 						else
@@ -1961,7 +1961,7 @@  discard block
 block discarded – undo
1961 1961
 				'type' => 'unparsed_commas_content',
1962 1962
 				'test' => '\d+,\d+\]',
1963 1963
 				'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>',
1964
-				'validate' => function (&$tag, &$data, $disabled)
1964
+				'validate' => function(&$tag, &$data, $disabled)
1965 1965
 				{
1966 1966
 					$data[0] = normalize_iri(strtr(trim($data[0]), array('<br>' => '', ' ' => '%20')));
1967 1967
 
@@ -2087,8 +2087,8 @@  discard block
 block discarded – undo
2087 2087
 					else
2088 2088
 						$url = get_proxied_url($url);
2089 2089
 
2090
-					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}']. '"' : ' alt=""';
2091
-					$title = !empty($params['{title}']) ? ' title="' . $params['{title}']. '"' : '';
2090
+					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}'] . '"' : ' alt=""';
2091
+					$title = !empty($params['{title}']) ? ' title="' . $params['{title}'] . '"' : '';
2092 2092
 
2093 2093
 					$data = isset($disabled[$tag['tag']]) ? $url : '<img src="' . $url . '"' . $alt . $title . $params['{width}'] . $params['{height}'] . ' class="bbc_img' . (!empty($params['{width}']) || !empty($params['{height}']) ? ' resized' : '') . '" loading="lazy">';
2094 2094
 				},
@@ -2526,12 +2526,12 @@  discard block
 block discarded – undo
2526 2526
 		$codes[] = array(
2527 2527
 			'tag' => 'cowsay',
2528 2528
 			'parameters' => array(
2529
-				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2529
+				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc)
2530 2530
 					{
2531 2531
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2532 2532
 					},
2533 2533
 				),
2534
-				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2534
+				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function($tongue) use ($smcFunc)
2535 2535
 					{
2536 2536
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2537 2537
 					},
@@ -4236,7 +4236,7 @@  discard block
 block discarded – undo
4236 4236
 		if ($fp != false)
4237 4237
 		{
4238 4238
 			// Send the HEAD request (since we don't have to worry about chunked, HTTP/1.1 is fine here.)
4239
-			fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n" . 'user-agent: '. SMF_USER_AGENT . "\r\n" . 'Connection: close' . "\r\n\r\n");
4239
+			fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n" . 'user-agent: ' . SMF_USER_AGENT . "\r\n" . 'Connection: close' . "\r\n\r\n");
4240 4240
 
4241 4241
 			// Read in the HTTP/1.1 or whatever.
4242 4242
 			$test = substr(fgets($fp, 11), -1);
@@ -4832,7 +4832,7 @@  discard block
 block discarded – undo
4832 4832
 
4833 4833
 	uasort(
4834 4834
 		$context['css_files'],
4835
-		function ($a, $b)
4835
+		function($a, $b)
4836 4836
 		{
4837 4837
 			return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0);
4838 4838
 		}
@@ -6152,7 +6152,7 @@  discard block
 block discarded – undo
6152 6152
 			{
6153 6153
 				fwrite($fp, 'GET ' . ($match[6] !== '/' ? str_replace(' ', '%20', $match[6]) : '') . ' HTTP/1.0' . "\r\n");
6154 6154
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
6155
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
6155
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
6156 6156
 				if ($keep_alive)
6157 6157
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n\r\n");
6158 6158
 				else
@@ -6162,7 +6162,7 @@  discard block
 block discarded – undo
6162 6162
 			{
6163 6163
 				fwrite($fp, 'POST ' . ($match[6] !== '/' ? $match[6] : '') . ' HTTP/1.0' . "\r\n");
6164 6164
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
6165
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
6165
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
6166 6166
 				if ($keep_alive)
6167 6167
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n");
6168 6168
 				else
@@ -6411,13 +6411,13 @@  discard block
 block discarded – undo
6411 6411
 
6412 6412
 	// UTF-8 occurences of MS special characters
6413 6413
 	$findchars_utf8 = array(
6414
-		"\xe2\x80\x9a",	// single low-9 quotation mark
6415
-		"\xe2\x80\x9e",	// double low-9 quotation mark
6416
-		"\xe2\x80\xa6",	// horizontal ellipsis
6417
-		"\xe2\x80\x98",	// left single curly quote
6418
-		"\xe2\x80\x99",	// right single curly quote
6419
-		"\xe2\x80\x9c",	// left double curly quote
6420
-		"\xe2\x80\x9d",	// right double curly quote
6414
+		"\xe2\x80\x9a", // single low-9 quotation mark
6415
+		"\xe2\x80\x9e", // double low-9 quotation mark
6416
+		"\xe2\x80\xa6", // horizontal ellipsis
6417
+		"\xe2\x80\x98", // left single curly quote
6418
+		"\xe2\x80\x99", // right single curly quote
6419
+		"\xe2\x80\x9c", // left double curly quote
6420
+		"\xe2\x80\x9d", // right double curly quote
6421 6421
 	);
6422 6422
 
6423 6423
 	// windows 1252 / iso equivalents
@@ -6433,13 +6433,13 @@  discard block
 block discarded – undo
6433 6433
 
6434 6434
 	// safe replacements
6435 6435
 	$replacechars = array(
6436
-		',',	// &sbquo;
6437
-		',,',	// &bdquo;
6438
-		'...',	// &hellip;
6439
-		"'",	// &lsquo;
6440
-		"'",	// &rsquo;
6441
-		'"',	// &ldquo;
6442
-		'"',	// &rdquo;
6436
+		',', // &sbquo;
6437
+		',,', // &bdquo;
6438
+		'...', // &hellip;
6439
+		"'", // &lsquo;
6440
+		"'", // &rsquo;
6441
+		'"', // &ldquo;
6442
+		'"', // &rdquo;
6443 6443
 	);
6444 6444
 
6445 6445
 	if ($context['utf8'])
@@ -6802,7 +6802,7 @@  discard block
 block discarded – undo
6802 6802
 		// We don't want abbreviations like '+03' or '-11'.
6803 6803
 		$abbrs = array_filter(
6804 6804
 			$tzvalue['abbrs'],
6805
-			function ($abbr)
6805
+			function($abbr)
6806 6806
 			{
6807 6807
 				return !strspn($abbr, '+-');
6808 6808
 			}
@@ -7791,7 +7791,7 @@  discard block
 block discarded – undo
7791 7791
 			EXISTS (
7792 7792
 				SELECT bpv.id_board
7793 7793
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7794
-				WHERE bpv.id_group IN ('. implode(',', $groups) .')
7794
+				WHERE bpv.id_group IN ('. implode(',', $groups) . ')
7795 7795
 					AND bpv.deny = 0
7796 7796
 					AND bpv.id_board = b.id_board
7797 7797
 			)';
@@ -7801,7 +7801,7 @@  discard block
 block discarded – undo
7801 7801
 			AND NOT EXISTS (
7802 7802
 				SELECT bpv.id_board
7803 7803
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7804
-				WHERE bpv.id_group IN ( '. implode(',', $groups) .')
7804
+				WHERE bpv.id_group IN ( '. implode(',', $groups) . ')
7805 7805
 					AND bpv.deny = 1
7806 7806
 					AND bpv.id_board = b.id_board
7807 7807
 			)';
@@ -8214,8 +8214,8 @@  discard block
 block discarded – undo
8214 8214
 	$i = 0;
8215 8215
 	while (empty($done))
8216 8216
 	{
8217
-		if (strpos($format, '{'. --$i . '}') !== false)
8218
-			$replacements['{'. $i . '}'] = array_pop($list);
8217
+		if (strpos($format, '{' . --$i . '}') !== false)
8218
+			$replacements['{' . $i . '}'] = array_pop($list);
8219 8219
 		else
8220 8220
 			$done = true;
8221 8221
 	}
@@ -8225,8 +8225,8 @@  discard block
 block discarded – undo
8225 8225
 	$i = 0;
8226 8226
 	while (empty($done))
8227 8227
 	{
8228
-		if (strpos($format, '{'. ++$i . '}') !== false)
8229
-			$replacements['{'. $i . '}'] = array_shift($list);
8228
+		if (strpos($format, '{' . ++$i . '}') !== false)
8229
+			$replacements['{' . $i . '}'] = array_shift($list);
8230 8230
 		else
8231 8231
 			$done = true;
8232 8232
 	}
@@ -8407,7 +8407,7 @@  discard block
 block discarded – undo
8407 8407
 	if (empty($stringSubject))
8408 8408
 		return '';
8409 8409
 
8410
-	$translatable_tokens = preg_match_all('/{(.*?)}/' , $stringSubject, $matches);
8410
+	$translatable_tokens = preg_match_all('/{(.*?)}/', $stringSubject, $matches);
8411 8411
 	$toFind = array();
8412 8412
 	$replaceWith = array();
8413 8413
 
Please login to merge, or discard this patch.
Sources/Subs-Db-postgresql.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		display_db_error();
76 76
 
77 77
 	// We need to escape ' and \
78
-	$db_passwd = str_replace(array('\\','\''), array('\\\\','\\\''), $db_passwd);
78
+	$db_passwd = str_replace(array('\\', '\''), array('\\\\', '\\\''), $db_passwd);
79 79
 
80 80
 	// Since pg_connect doesn't feed error info to pg_last_error, we have to catch issues with a try/catch.
81 81
 	set_error_handler(
@@ -926,7 +926,7 @@  discard block
 block discarded – undo
926 926
 	if (!empty($inTransaction))
927 927
 		smf_db_transaction('rollback');
928 928
 
929
-	if(empty($db_persist))
929
+	if (empty($db_persist))
930 930
 	{ // without pooling
931 931
 		if (empty($pg_error_data_prep))
932 932
 			$pg_error_data_prep = pg_prepare($db_connection, 'smf_log_errors',
Please login to merge, or discard this patch.
Sources/Class-Punycode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 				}
242 242
 				if ($c === $n) {
243 243
 					$q = $delta;
244
-					for ($k = static::BASE;; $k += static::BASE) {
244
+					for ($k = static::BASE; ; $k += static::BASE) {
245 245
 						$t = $this->calculateThreshold($k, $bias);
246 246
 						if ($q < $t) {
247 247
 							break;
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 			$oldi = $i;
345 345
 			$w = 1;
346 346
 
347
-			for ($k = static::BASE;; $k += static::BASE)
347
+			for ($k = static::BASE; ; $k += static::BASE)
348 348
 			{
349 349
 				if (!isset($input[$pos]) || !isset(static::$decodeTable[$input[$pos]]))
350 350
 					return false;
Please login to merge, or discard this patch.
Sources/Errors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
 
220 220
 	// Send a custom header if we have a custom message.
221 221
 	if (isset($_REQUEST['js']) || isset($_REQUEST['xml']) || isset($_RQEUEST['ajax']))
222
-		header('X-SMF-errormsg: ' .  $error_message);
222
+		header('X-SMF-errormsg: ' . $error_message);
223 223
 
224 224
 	// If we have no theme stuff we can't have the language file...
225 225
 	if (empty($context['theme_loaded']))
Please login to merge, or discard this patch.
Sources/ManageMaintenance.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2065,7 +2065,7 @@  discard block
 block discarded – undo
2065 2065
 		new RecursiveIteratorIterator(
2066 2066
 			new RecursiveCallbackFilterIterator(
2067 2067
 				new RecursiveDirectoryIterator($dirname, FilesystemIterator::UNIX_PATHS),
2068
-				function ($fileInfo, $currentFile, $iterator)
2068
+				function($fileInfo, $currentFile, $iterator)
2069 2069
 				{
2070 2070
 					// Allow recursion
2071 2071
 					if ($iterator->hasChildren())
@@ -2112,7 +2112,7 @@  discard block
 block discarded – undo
2112 2112
 			$hookParsedData = parse_integration_hook($hook, $rawFunc);
2113 2113
 
2114 2114
 			// Handle hooks pointing outside the sources directory.
2115
-			$absPath_clean =  rtrim($hookParsedData['absPath'], '!');
2115
+			$absPath_clean = rtrim($hookParsedData['absPath'], '!');
2116 2116
 			if ($absPath_clean != '' && !isset($files[$absPath_clean]) && file_exists($absPath_clean))
2117 2117
 				$function_list += get_defined_functions_in_file($absPath_clean);
2118 2118
 
Please login to merge, or discard this patch.
Sources/Subs-Charset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 	$combining_classes = utf8_combining_classes();
550 550
 
551 551
 	// Replace characters with decomposed forms.
552
-	for ($i=0; $i < count($chars); $i++)
552
+	for ($i = 0; $i < count($chars); $i++)
553 553
 	{
554 554
 		// Hangul characters.
555 555
 		// See "Hangul Syllable Decomposition" in the Unicode standard, ch. 3.12.
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
 		{
585 585
 			$temp = $chars[$i];
586 586
 			$chars[$i] = $chars[$i - 1];
587
-			$chars[$i -1] = $temp;
587
+			$chars[$i - 1] = $temp;
588 588
 
589 589
 			// Backtrack and check again.
590 590
 			if ($i > 1)
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
 
825 825
 	// Use placeholders to preserve known emoji from further processing.
826 826
 	// Regex source is https://unicode.org/reports/tr51/#EBNF_and_Regex
827
-	$string  = preg_replace_callback(
827
+	$string = preg_replace_callback(
828 828
 		'/' .
829 829
 		// Flag emojis
830 830
 		'[' . $prop_classes['Regional_Indicator'] . ']{2}' .
@@ -853,7 +853,7 @@  discard block
 block discarded – undo
853 853
 			')?' .
854 854
 		')*' .
855 855
 		'/u',
856
-		function ($matches) use (&$placeholders)
856
+		function($matches) use (&$placeholders)
857 857
 		{
858 858
 			// Skip lone ASCII characters that are not actully part of an emoji sequence.
859 859
 			// This can happen because the digits 0-9 and the '*' and '#' characters are
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
 		// Use placeholders for sanctioned variation selectors.
885 885
 		$string = preg_replace_callback(
886 886
 			$patterns,
887
-			function ($matches) use (&$placeholders)
887
+			function($matches) use (&$placeholders)
888 888
 			{
889 889
 				$placeholders[$matches[0]] = "\xEE\xB3\x9B" . md5($matches[0]) . "\xEE\xB3\x9C";
890 890
 				return $placeholders[$matches[0]];
@@ -964,7 +964,7 @@  discard block
 block discarded – undo
964 964
 			// Do the thing.
965 965
 			$string = preg_replace_callback(
966 966
 				'/' . $pattern . '/u',
967
-				function ($matches) use ($placeholders)
967
+				function($matches) use ($placeholders)
968 968
 				{
969 969
 					return strtr($matches[0], $placeholders);
970 970
 				},
Please login to merge, or discard this patch.
Sources/tasks/UpdateUnicode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 		if (!@touch($this->temp_dir . DIRECTORY_SEPARATOR . 'lock'))
417 417
 			return true;
418 418
 
419
-		register_shutdown_function(function () {
419
+		register_shutdown_function(function() {
420 420
 			if (file_exists($this->temp_dir . DIRECTORY_SEPARATOR . 'lock'))
421 421
 				unlink($this->temp_dir . DIRECTORY_SEPARATOR . 'lock');
422 422
 		});
@@ -902,7 +902,7 @@  discard block
 block discarded – undo
902 902
 					$func_code = rtrim($func_code);
903 903
 
904 904
 					$func_code .= $nextline . implode(' .' . $nextline, array_map(
905
-						function ($v)
905
+						function($v)
906 906
 						{
907 907
 							return var_export($v, true);
908 908
 						},
@@ -1833,7 +1833,7 @@  discard block
 block discarded – undo
1833 1833
 			}
1834 1834
 		}
1835 1835
 		// This sort works decently well to ensure widely used scripts are ranked before rare scripts.
1836
-		uasort($this->funcs['utf8_regex_joining_type']['data'], function ($a, $b)
1836
+		uasort($this->funcs['utf8_regex_joining_type']['data'], function($a, $b)
1837 1837
 		{
1838 1838
 			if ($a['stats']['age'] == $b['stats']['age'])
1839 1839
 			{
@@ -1921,7 +1921,7 @@  discard block
 block discarded – undo
1921 1921
 			}
1922 1922
 		}
1923 1923
 		// Again, sort commonly used scripts before rare scripts.
1924
-		uasort($this->funcs['utf8_regex_indic']['data'], function ($a, $b)
1924
+		uasort($this->funcs['utf8_regex_indic']['data'], function($a, $b)
1925 1925
 		{
1926 1926
 			if ($a['stats']['age'] == $b['stats']['age'])
1927 1927
 			{
Please login to merge, or discard this patch.
Sources/Reports.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@
 block discarded – undo
419 419
 
420 420
 	$board_names = array_reduce(
421 421
 		$boards,
422
-		function (array $accumulator, array $board)
422
+		function(array $accumulator, array $board)
423 423
 		{
424 424
 			$accumulator[$board['profile']][] = $board['name'];
425 425
 
Please login to merge, or discard this patch.
Sources/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
 	 * @return boolean Whether the info was successfully written
173 173
 	 */
174 174
 	#[\ReturnTypeWillChange]
175
-	public function write(/*PHP 8.0 string*/$id,/*PHP 8.0 string */ $data): bool
175
+	public function write(/*PHP 8.0 string*/$id, /*PHP 8.0 string */ $data): bool
176 176
 	{
177 177
 		global $smcFunc;
178 178
 
Please login to merge, or discard this patch.