Passed
Pull Request — release-2.1 (#6858)
by Jon
05:44
created
Sources/Subs-Graphics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@
 block discarded – undo
370 370
 	{
371 371
 		if (!empty($exif_data['Orientation']))
372 372
 		{
373
-			switch($exif_data['Orientation'])
373
+			switch ($exif_data['Orientation'])
374 374
 			{
375 375
 				case 8:
376 376
 					$rotate = 90;
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 require_once($sourcedir . '/Security.php');
79 79
 
80 80
 // If $maintenance is set specifically to 2, then we're upgrading or something.
81
-if (!empty($maintenance) &&  2 === $maintenance)
81
+if (!empty($maintenance) && 2 === $maintenance)
82 82
 {
83 83
 	display_maintenance_message();
84 84
 }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  *
95 95
  * @param string $class The fully-qualified class name.
96 96
  */
97
-spl_autoload_register(function ($class) use ($sourcedir)
97
+spl_autoload_register(function($class) use ($sourcedir)
98 98
 {
99 99
 	$classMap = array(
100 100
 		'ReCaptcha\\' => 'ReCaptcha/',
Please login to merge, or discard this patch.
Sources/MessageIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -340,7 +340,7 @@
 block discarded – undo
340 340
 		WHERE t.id_board = {int:current_board} '
341 341
 			. (!$modSettings['postmod_active'] || $context['can_approve_posts'] ? '' : '
342 342
 			AND (t.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR t.id_member_started = {int:current_member}') . ')') . (!empty($message_index_topic_wheres) ? '
343
-			AND ' . implode("\n\t\t\t\tAND ", $message_index_topic_wheres) : ''). '
343
+			AND ' . implode("\n\t\t\t\tAND ", $message_index_topic_wheres) : '') . '
344 344
 		ORDER BY is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . '
345 345
 		LIMIT {int:maxindex}
346 346
 			OFFSET {int:start} ';
Please login to merge, or discard this patch.
Sources/Load.php 1 patch
Spacing   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
 			'filename' => empty($user_settings['filename']) ? '' : $user_settings['filename'],
815 815
 			'custom_dir' => !empty($user_settings['attachment_type']) && $user_settings['attachment_type'] == 1,
816 816
 			'id_attach' => isset($user_settings['id_attach']) ? $user_settings['id_attach'] : 0,
817
-			'width' => isset($user_settings['attachment_width']) > 0 ? $user_settings['attachment_width']: 0,
817
+			'width' => isset($user_settings['attachment_width']) > 0 ? $user_settings['attachment_width'] : 0,
818 818
 			'height' => isset($user_settings['attachment_height']) > 0 ? $user_settings['attachment_height'] : 0,
819 819
 		),
820 820
 		'smiley_set' => isset($user_settings['smiley_set']) ? $user_settings['smiley_set'] : '',
@@ -2708,8 +2708,7 @@  discard block
 block discarded – undo
2708 2708
 		$context['css_files_order'] = array();
2709 2709
 
2710 2710
 	$params['seed'] = (!array_key_exists('seed', $params) || (array_key_exists('seed', $params) && $params['seed'] === true)) ?
2711
-		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') :
2712
-		(is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2711
+		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2713 2712
 	$params['force_current'] = isset($params['force_current']) ? $params['force_current'] : false;
2714 2713
 	$themeRef = !empty($params['default_theme']) ? 'default_theme' : 'theme';
2715 2714
 	$params['minimize'] = isset($params['minimize']) ? $params['minimize'] : true;
@@ -2823,8 +2822,7 @@  discard block
 block discarded – undo
2823 2822
 	global $settings, $context, $modSettings;
2824 2823
 
2825 2824
 	$params['seed'] = (!array_key_exists('seed', $params) || (array_key_exists('seed', $params) && $params['seed'] === true)) ?
2826
-		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') :
2827
-		(is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2825
+		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2828 2826
 	$params['force_current'] = isset($params['force_current']) ? $params['force_current'] : false;
2829 2827
 	$themeRef = !empty($params['default_theme']) ? 'default_theme' : 'theme';
2830 2828
 	$params['async'] = isset($params['async']) ? $params['async'] : false;
@@ -3567,8 +3565,7 @@  discard block
 block discarded – undo
3567 3565
 
3568 3566
 	// What accelerator we are going to try.
3569 3567
 	$cache_class_name = !empty($cache_accelerator) ? $cache_accelerator : CacheApi::APIS_DEFAULT;
3570
-	$fully_qualified_class_name = !empty($overrideCache) ? $overrideCache :
3571
-		CacheApi::APIS_NAMESPACE . $cache_class_name;
3568
+	$fully_qualified_class_name = !empty($overrideCache) ? $overrideCache : CacheApi::APIS_NAMESPACE . $cache_class_name;
3572 3569
 
3573 3570
 	// Do some basic tests.
3574 3571
 	if (class_exists($fully_qualified_class_name))
@@ -3872,7 +3869,7 @@  discard block
 block discarded – undo
3872 3869
 			$auth_secret = hash_file('sha256', $boarddir . '/Settings.php');
3873 3870
 
3874 3871
 			// Set the last error to now, but only every 15 minutes.  Don't need to flood the logs.
3875
-			if (empty($db_last_error) || ($db_last_error + 60*15) <= time())
3872
+			if (empty($db_last_error) || ($db_last_error + 60 * 15) <= time())
3876 3873
 			{
3877 3874
 				updateDbLastError(time());
3878 3875
 				loadLanguage('Errors');
Please login to merge, or discard this patch.
Sources/Subs.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 			{
379 379
 				$val = 'CASE ';
380 380
 				foreach ($members as $k => $v)
381
-					$val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' ';
381
+					$val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' ';
382 382
 
383 383
 				$val = $val . ' END';
384 384
 				$type = 'raw';
@@ -1041,11 +1041,11 @@  discard block
 block discarded – undo
1041 1041
 			// Anything that isn't a specification, punctuation mark, or whitespace.
1042 1042
 			'~(?<!%)\p{L}|[^\p{L}\p{P}\s]~u',
1043 1043
 			// A series of punctuation marks (except %), possibly separated by whitespace.
1044
-			'~([^%\P{P}])(\s*)(?'.'>(\1|[^%\P{Po}])\s*(?!$))*~u',
1044
+			'~([^%\P{P}])(\s*)(?' . '>(\1|[^%\P{Po}])\s*(?!$))*~u',
1045 1045
 			// Unwanted trailing punctuation and whitespace.
1046
-			'~(?'.'>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1046
+			'~(?' . '>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1047 1047
 			// Unwanted opening punctuation and whitespace.
1048
-			'~^\s*(?'.'>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1048
+			'~^\s*(?' . '>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1049 1049
 		),
1050 1050
 		array(
1051 1051
 			'',
@@ -1443,7 +1443,7 @@  discard block
 block discarded – undo
1443 1443
 								$returnContext .= '<img src="' . $currentAttachment['href'] . '"' . $alt . $title . ' class="bbc_img"></a>';
1444 1444
 							else
1445 1445
 							{
1446
-								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"': '';
1446
+								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1447 1447
 								$height = !empty($params['{height}']) ? 'height="' . $params['{height}'] . '"' : '';
1448 1448
 								$returnContext .= '<img src="' . $currentAttachment['href'] . ';image"' . $alt . $title . $width . $height . ' class="bbc_img resized"/>';
1449 1449
 							}
@@ -1454,7 +1454,7 @@  discard block
 block discarded – undo
1454 1454
 							$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1455 1455
 							$height = !empty($params['{height}']) ? ' height="' . $params['{height}'] . '"' : '';
1456 1456
 
1457
-							$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>' : '');
1457
+							$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>' : '');
1458 1458
 						}
1459 1459
 						// Audio.
1460 1460
 						elseif (strpos($currentAttachment['mime_type'], 'audio/') === 0)
@@ -1462,7 +1462,7 @@  discard block
 block discarded – undo
1462 1462
 							$width = 'max-width:100%; width: ' . (!empty($params['{width}']) ? $params['{width}'] : '400') . 'px;';
1463 1463
 							$height = !empty($params['{height}']) ? 'height: ' . $params['{height}'] . 'px;' : '';
1464 1464
 
1465
-							$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>';
1465
+							$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>';
1466 1466
 						}
1467 1467
 						// Anything else.
1468 1468
 						else
@@ -1631,7 +1631,7 @@  discard block
 block discarded – undo
1631 1631
 				'type' => 'unparsed_commas_content',
1632 1632
 				'test' => '\d+,\d+\]',
1633 1633
 				'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>',
1634
-				'validate' => function (&$tag, &$data, $disabled)
1634
+				'validate' => function(&$tag, &$data, $disabled)
1635 1635
 				{
1636 1636
 					$scheme = parse_url($data[0], PHP_URL_SCHEME);
1637 1637
 					if (empty($scheme))
@@ -1744,8 +1744,8 @@  discard block
 block discarded – undo
1744 1744
 					else
1745 1745
 						$url = get_proxied_url($url);
1746 1746
 
1747
-					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}']. '"' : ' alt=""';
1748
-					$title = !empty($params['{title}']) ? ' title="' . $params['{title}']. '"' : '';
1747
+					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}'] . '"' : ' alt=""';
1748
+					$title = !empty($params['{title}']) ? ' title="' . $params['{title}'] . '"' : '';
1749 1749
 
1750 1750
 					$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">';
1751 1751
 				},
@@ -2159,12 +2159,12 @@  discard block
 block discarded – undo
2159 2159
 		$codes[] = array(
2160 2160
 			'tag' => 'cowsay',
2161 2161
 			'parameters' => array(
2162
-				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2162
+				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc)
2163 2163
 					{
2164 2164
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2165 2165
 					},
2166 2166
 				),
2167
-				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2167
+				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function($tongue) use ($smcFunc)
2168 2168
 					{
2169 2169
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2170 2170
 					},
@@ -3813,7 +3813,7 @@  discard block
 block discarded – undo
3813 3813
 		if ($fp != false)
3814 3814
 		{
3815 3815
 			// Send the HEAD request (since we don't have to worry about chunked, HTTP/1.1 is fine here.)
3816
-			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");
3816
+			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");
3817 3817
 
3818 3818
 			// Read in the HTTP/1.1 or whatever.
3819 3819
 			$test = substr(fgets($fp, 11), -1);
@@ -4430,7 +4430,7 @@  discard block
 block discarded – undo
4430 4430
 	$toMinify = array();
4431 4431
 	$normal = array();
4432 4432
 
4433
-	uasort($context['css_files'], function ($a, $b)
4433
+	uasort($context['css_files'], function($a, $b)
4434 4434
 	{
4435 4435
 		return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0);
4436 4436
 	});
@@ -5727,7 +5727,7 @@  discard block
 block discarded – undo
5727 5727
 			{
5728 5728
 				fwrite($fp, 'GET ' . ($match[6] !== '/' ? str_replace(' ', '%20', $match[6]) : '') . ' HTTP/1.0' . "\r\n");
5729 5729
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
5730
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
5730
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
5731 5731
 				if ($keep_alive)
5732 5732
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n\r\n");
5733 5733
 				else
@@ -5737,7 +5737,7 @@  discard block
 block discarded – undo
5737 5737
 			{
5738 5738
 				fwrite($fp, 'POST ' . ($match[6] !== '/' ? $match[6] : '') . ' HTTP/1.0' . "\r\n");
5739 5739
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
5740
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
5740
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
5741 5741
 				if ($keep_alive)
5742 5742
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n");
5743 5743
 				else
@@ -5986,13 +5986,13 @@  discard block
 block discarded – undo
5986 5986
 
5987 5987
 	// UTF-8 occurences of MS special characters
5988 5988
 	$findchars_utf8 = array(
5989
-		"\xe2\x80\x9a",	// single low-9 quotation mark
5990
-		"\xe2\x80\x9e",	// double low-9 quotation mark
5991
-		"\xe2\x80\xa6",	// horizontal ellipsis
5992
-		"\xe2\x80\x98",	// left single curly quote
5993
-		"\xe2\x80\x99",	// right single curly quote
5994
-		"\xe2\x80\x9c",	// left double curly quote
5995
-		"\xe2\x80\x9d",	// right double curly quote
5989
+		"\xe2\x80\x9a", // single low-9 quotation mark
5990
+		"\xe2\x80\x9e", // double low-9 quotation mark
5991
+		"\xe2\x80\xa6", // horizontal ellipsis
5992
+		"\xe2\x80\x98", // left single curly quote
5993
+		"\xe2\x80\x99", // right single curly quote
5994
+		"\xe2\x80\x9c", // left double curly quote
5995
+		"\xe2\x80\x9d", // right double curly quote
5996 5996
 	);
5997 5997
 
5998 5998
 	// windows 1252 / iso equivalents
@@ -6008,13 +6008,13 @@  discard block
 block discarded – undo
6008 6008
 
6009 6009
 	// safe replacements
6010 6010
 	$replacechars = array(
6011
-		',',	// &sbquo;
6012
-		',,',	// &bdquo;
6013
-		'...',	// &hellip;
6014
-		"'",	// &lsquo;
6015
-		"'",	// &rsquo;
6016
-		'"',	// &ldquo;
6017
-		'"',	// &rdquo;
6011
+		',', // &sbquo;
6012
+		',,', // &bdquo;
6013
+		'...', // &hellip;
6014
+		"'", // &lsquo;
6015
+		"'", // &rsquo;
6016
+		'"', // &ldquo;
6017
+		'"', // &rdquo;
6018 6018
 	);
6019 6019
 
6020 6020
 	if ($context['utf8'])
@@ -6359,7 +6359,7 @@  discard block
 block discarded – undo
6359 6359
 			$desc = implode(', ', array_slice(array_unique($tzvalue['locations']), 0, 5)) . (count($tzvalue['locations']) > 5 ? ', ' . $txt['etc'] : '');
6360 6360
 
6361 6361
 		// We don't want abbreviations like '+03' or '-11'.
6362
-		$abbrs = array_filter($tzvalue['abbrs'], function ($abbr) {
6362
+		$abbrs = array_filter($tzvalue['abbrs'], function($abbr) {
6363 6363
 			return !strspn($abbr, '+-');
6364 6364
 		});
6365 6365
 		$abbrs = count($abbrs) == count($tzvalue['abbrs']) ? array_unique($abbrs) : array();
@@ -7323,7 +7323,7 @@  discard block
 block discarded – undo
7323 7323
 			EXISTS (
7324 7324
 				SELECT bpv.id_board
7325 7325
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7326
-				WHERE bpv.id_group IN ('. implode(',', $groups) .')
7326
+				WHERE bpv.id_group IN ('. implode(',', $groups) . ')
7327 7327
 					AND bpv.deny = 0
7328 7328
 					AND bpv.id_board = b.id_board
7329 7329
 			)';
@@ -7333,7 +7333,7 @@  discard block
 block discarded – undo
7333 7333
 			AND NOT EXISTS (
7334 7334
 				SELECT bpv.id_board
7335 7335
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7336
-				WHERE bpv.id_group IN ( '. implode(',', $groups) .')
7336
+				WHERE bpv.id_group IN ( '. implode(',', $groups) . ')
7337 7337
 					AND bpv.deny = 1
7338 7338
 					AND bpv.id_board = b.id_board
7339 7339
 			)';
@@ -7638,8 +7638,8 @@  discard block
 block discarded – undo
7638 7638
 	$i = 0;
7639 7639
 	while (empty($done))
7640 7640
 	{
7641
-		if (strpos($format, '{'. --$i . '}') !== false)
7642
-			$replacements['{'. $i . '}'] = array_pop($list);
7641
+		if (strpos($format, '{' . --$i . '}') !== false)
7642
+			$replacements['{' . $i . '}'] = array_pop($list);
7643 7643
 		else
7644 7644
 			$done = true;
7645 7645
 	}
@@ -7649,8 +7649,8 @@  discard block
 block discarded – undo
7649 7649
 	$i = 0;
7650 7650
 	while (empty($done))
7651 7651
 	{
7652
-		if (strpos($format, '{'. ++$i . '}') !== false)
7653
-			$replacements['{'. $i . '}'] = array_shift($list);
7652
+		if (strpos($format, '{' . ++$i . '}') !== false)
7653
+			$replacements['{' . $i . '}'] = array_shift($list);
7654 7654
 		else
7655 7655
 			$done = true;
7656 7656
 	}
Please login to merge, or discard this patch.
Themes/default/Admin.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -756,7 +756,7 @@
 block discarded – undo
756 756
 	}
757 757
 
758 758
 	// Filter out any redundant separators before we start the loop
759
-	$context['config_vars'] = array_filter($context['config_vars'], function ($v) use ($context)
759
+	$context['config_vars'] = array_filter($context['config_vars'], function($v) use ($context)
760 760
 	{
761 761
 		static $config_vars, $prev;
762 762
 
Please login to merge, or discard this patch.
Sources/Profile-Export.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 	// Figure out the filename we'll tell the browser.
470 470
 	$datatypes = file_exists($progressfile) ? array_keys($smcFunc['json_decode'](file_get_contents($progressfile), true)) : array('profile');
471 471
 	$included_desc = array_map(
472
-		function ($datatype) use ($txt)
472
+		function($datatype) use ($txt)
473 473
 		{
474 474
 			return $txt[$datatype];
475 475
 		},
@@ -789,9 +789,9 @@  discard block
 block discarded – undo
789 789
 	$xslt_variables = array();
790 790
 
791 791
 	// Do not change any of these to HTTPS URLs. For explanation, see comments in the buildXmlFeed() function.
792
-	$smf_ns = 'htt'.'p:/'.'/ww'.'w.simple'.'machines.o'.'rg/xml/profile';
793
-	$xslt_ns = 'htt'.'p:/'.'/ww'.'w.w3.o'.'rg/1999/XSL/Transform';
794
-	$html_ns = 'htt'.'p:/'.'/ww'.'w.w3.o'.'rg/1999/xhtml';
792
+	$smf_ns = 'htt' . 'p:/' . '/ww' . 'w.simple' . 'machines.o' . 'rg/xml/profile';
793
+	$xslt_ns = 'htt' . 'p:/' . '/ww' . 'w.w3.o' . 'rg/1999/XSL/Transform';
794
+	$html_ns = 'htt' . 'p:/' . '/ww' . 'w.w3.o' . 'rg/1999/xhtml';
795 795
 
796 796
 	require_once($sourcedir . DIRECTORY_SEPARATOR . 'News.php');
797 797
 
@@ -1696,14 +1696,14 @@  discard block
 block discarded – undo
1696 1696
 
1697 1697
 		if (!empty($context['export_css_header']))
1698 1698
 		{
1699
-			$stylesheet['css_js'] .=  '
1699
+			$stylesheet['css_js'] .= '
1700 1700
 			<style><![CDATA[' . "\n" . implode("\n", $context['export_css_header']) . "\n" . ']]>
1701 1701
 			</style>';
1702 1702
 		}
1703 1703
 
1704 1704
 		if (!empty($context['export_javascript_vars']))
1705 1705
 		{
1706
-			$stylesheet['css_js'] .=  '
1706
+			$stylesheet['css_js'] .= '
1707 1707
 			<script><![CDATA[';
1708 1708
 
1709 1709
 			foreach ($context['export_javascript_vars'] as $var => $val)
@@ -1739,7 +1739,7 @@  discard block
 block discarded – undo
1739 1739
 
1740 1740
 		if (!empty($context['export_javascript_inline']['standard']))
1741 1741
 		{
1742
-			$stylesheet['css_js'] .=  '
1742
+			$stylesheet['css_js'] .= '
1743 1743
 			<script><![CDATA[' . "\n" . implode("\n", $context['export_javascript_inline']['standard']) . "\n" . ']]>
1744 1744
 			</script>';
1745 1745
 		}
@@ -1751,7 +1751,7 @@  discard block
 block discarded – undo
1751 1751
 
1752 1752
 			$stylesheet['css_js'] .= "\n\t" . str_replace("\n", "\n\t", implode("\n", $context['export_javascript_inline']['defer']));
1753 1753
 
1754
-			$stylesheet['css_js'] .= "\n" . '});'. "\n" . ']]>
1754
+			$stylesheet['css_js'] .= "\n" . '});' . "\n" . ']]>
1755 1755
 			</script>';
1756 1756
 		}
1757 1757
 
@@ -1832,7 +1832,7 @@  discard block
 block discarded – undo
1832 1832
 	$css_to_minify = array();
1833 1833
 	$normal_css_files = array();
1834 1834
 
1835
-	usort($context['css_files'], function ($a, $b)
1835
+	usort($context['css_files'], function($a, $b)
1836 1836
 	{
1837 1837
 		return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0);
1838 1838
 	});
Please login to merge, or discard this patch.
Sources/Profile-View.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 			AND a.is_read = 0' : '') . (!empty($alertIDs) ? '
263 263
 			AND a.id_alert IN ({array_int:alertIDs})' : '') . '
264 264
 		ORDER BY id_alert DESC' . (!empty($limit) ? '
265
-		LIMIT {int:limit}' : '') . (!empty($offset) ?'
265
+		LIMIT {int:limit}' : '') . (!empty($offset) ? '
266 266
 		OFFSET {int:offset}' : ''),
267 267
 		array(
268 268
 			'id_member' => $memID,
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 
362 362
 	// Substitute $scripturl into the link formats. (Done here to make life easier for hooked mods.)
363 363
 	$formats = array_map(
364
-		function ($format) use ($scripturl)
364
+		function($format) use ($scripturl)
365 365
 		{
366 366
 			$format['link'] = str_replace('{scripturl}', $scripturl, $format['link']);
367 367
 			$format['text'] = str_replace('{scripturl}', $scripturl, $format['text']);
@@ -1172,20 +1172,20 @@  discard block
 block discarded – undo
1172 1172
 		$context['posts'][$key]['quickbuttons'] = array(
1173 1173
 			'reply' => array(
1174 1174
 				'label' => $txt['reply'],
1175
-				'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'],
1175
+				'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'],
1176 1176
 				'icon' => 'reply_button',
1177 1177
 				'show' => $post['can_reply']
1178 1178
 			),
1179 1179
 			'quote' => array(
1180 1180
 				'label' => $txt['quote_action'],
1181
-				'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'].';quote='.$post['id'],
1181
+				'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'] . ';quote=' . $post['id'],
1182 1182
 				'icon' => 'quote',
1183 1183
 				'show' => $post['can_quote']
1184 1184
 			),
1185 1185
 			'remove' => array(
1186 1186
 				'label' => $txt['remove'],
1187
-				'href' => $scripturl.'?action=deletemsg;msg='.$post['id'].';topic='.$post['topic'].';profile;u='.$context['member']['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'],
1188
-				'javascript' => 'data-confirm="'.$txt['remove_message'].'"',
1187
+				'href' => $scripturl . '?action=deletemsg;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';profile;u=' . $context['member']['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1188
+				'javascript' => 'data-confirm="' . $txt['remove_message'] . '"',
1189 1189
 				'class' => 'you_sure',
1190 1190
 				'icon' => 'remove_button',
1191 1191
 				'show' => $post['can_delete']
Please login to merge, or discard this patch.
Sources/tasks/ExportProfileData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		$feed_meta = array(
205 205
 			'title' => sprintf($txt['profile_of_username'], $user_profile[$uid]['real_name']),
206 206
 			'desc' => sentence_list(array_map(
207
-				function ($datatype) use ($txt)
207
+				function($datatype) use ($txt)
208 208
 				{
209 209
 					return $txt[$datatype];
210 210
 				},
@@ -726,7 +726,7 @@  discard block
 block discarded – undo
726 726
 					'src' => 'src="' . $currentAttachment['href'] . '" onerror="$(\'.dlattach_' . $currentAttachment['id'] . '\').show(); $(\'.dlattach_' . $currentAttachment['id'] . '\').css({\'position\': \'absolute\'});"',
727 727
 				),
728 728
 				$returnContext
729
-			) . $hidden_orig_link . '</span>' ;
729
+			) . $hidden_orig_link . '</span>';
730 730
 		}
731 731
 		elseif (strpos($currentAttachment['mime_type'], 'video/') === 0)
732 732
 		{
Please login to merge, or discard this patch.