Passed
Push — release-2.1 ( 12d126...77eee1 )
by Mathias
07:47 queued 16s
created
Sources/Subs-Charset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 	$combining_classes = utf8_combining_classes();
266 266
 
267 267
 	// Replace characters with decomposed forms.
268
-	for ($i=0; $i < count($chars); $i++)
268
+	for ($i = 0; $i < count($chars); $i++)
269 269
 	{
270 270
 		// Hangul characters.
271 271
 		if ($chars[$i] >= "\xEA\xB0\x80" && $chars[$i] <= "\xED\x9E\xA3")
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 		{
300 300
 			$temp = $chars[$i];
301 301
 			$chars[$i] = $chars[$i - 1];
302
-			$chars[$i -1] = $temp;
302
+			$chars[$i - 1] = $temp;
303 303
 
304 304
 			// Backtrack and check again.
305 305
 			if ($i > 1)
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 
544 544
 	// Use placeholders to preserve known emoji from further processing.
545 545
 	// Regex source is https://unicode.org/reports/tr51/#EBNF_and_Regex
546
-	$string  = preg_replace_callback(
546
+	$string = preg_replace_callback(
547 547
 		'/' .
548 548
 		// Flag emojis
549 549
 		'[' . $prop_classes['Regional_Indicator'] . ']{2}' .
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
 			')?' .
573 573
 		')*' .
574 574
 		'/u',
575
-		function ($matches) use (&$placeholders)
575
+		function($matches) use (&$placeholders)
576 576
 		{
577 577
 			// Skip lone ASCII characters that are not actully part of an emoji sequence.
578 578
 			// This can happen because the digits 0-9 and the '*' and '#' characters are
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 		// Use placeholders for sanctioned variation selectors.
604 604
 		$string = preg_replace_callback(
605 605
 			$patterns,
606
-			function ($matches) use (&$placeholders)
606
+			function($matches) use (&$placeholders)
607 607
 			{
608 608
 				$placeholders[$matches[0]] = "\xEE\xB3\x9B" . md5($matches[0]) . "\xEE\xB3\x9C";
609 609
 				return $placeholders[$matches[0]];
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
 			// Do the thing.
684 684
 			$string = preg_replace_callback(
685 685
 				'/' . $pattern . '/u',
686
-				function ($matches) use ($placeholders)
686
+				function($matches) use ($placeholders)
687 687
 				{
688 688
 					return strtr($matches[0], $placeholders);
689 689
 				},
Please login to merge, or discard this patch.
other/update_unicode_data.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 	}
753 753
 }
754 754
 // This sort works decently well to ensure widely used scripts are ranked before rare scripts.
755
-uasort($funcs['utf8_regex_joining_type']['data'], function ($a, $b)
755
+uasort($funcs['utf8_regex_joining_type']['data'], function($a, $b)
756 756
 {
757 757
 	if ($a['stats']['age'] == $b['stats']['age'])
758 758
 	{
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
 	}
829 829
 }
830 830
 // Again, sort commonly used scripts before rare scripts.
831
-uasort($funcs['utf8_regex_indic']['data'], function ($a, $b)
831
+uasort($funcs['utf8_regex_indic']['data'], function($a, $b)
832 832
 {
833 833
 	if ($a['stats']['age'] == $b['stats']['age'])
834 834
 	{
Please login to merge, or discard this patch.
Sources/Profile-Modify.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,6 @@  discard block
 block discarded – undo
156 156
 					$diff = $cur_profile['date_registered'] - strtotime(smf_strftime('%Y-%m-%d', $cur_profile['date_registered']));
157 157
 					$value = $value + $diff;
158 158
 				}
159
-
160 159
 				else
161 160
 					$value = $cur_profile['date_registered'];
162 161
 
@@ -507,7 +506,7 @@  discard block
 block discarded – undo
507 506
 						log_error(sprintf($txt['smiley_set_dir_not_found'], $set_names[array_search($set, $context['smiley_sets'])]));
508 507
 
509 508
 						$context['smiley_sets'] = array_filter($context['smiley_sets'], function($v) use ($set)
510
-							{
509
+						{
511 510
 								return $v != $set;
512 511
 							});
513 512
 					}
@@ -3518,7 +3517,6 @@  discard block
 block discarded – undo
3518 3517
 			}
3519 3518
 		}
3520 3519
 	}
3521
-
3522 3520
 	elseif (($value == 'upload' && allowedTo('profile_upload_avatar')) || $downloadedExternalAvatar)
3523 3521
 	{
3524 3522
 		if ((isset($_FILES['attachment']['name']) && $_FILES['attachment']['name'] != '') || $downloadedExternalAvatar)
Please login to merge, or discard this patch.