Failed Conditions
Push — release-2.1 ( e0848c...8d1977 )
by Rick
08:43
created
Sources/Profile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -619,7 +619,7 @@
 block discarded – undo
619 619
 			if (!empty($modSettings['force_ssl']) && empty($maintenance) && !httpsOn())
620 620
 				fatal_lang_error('login_ssl_required', false);
621 621
 
622
-			$password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] :  '';
622
+			$password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] : '';
623 623
 
624 624
 			// You didn't even enter a password!
625 625
 			if (trim($password) == '')
Please login to merge, or discard this patch.
Sources/tasks/CreatePost-Notify.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 {
20 20
 	/**
21 21
 	 * Constants for reply types.
22
-	*/
22
+	 */
23 23
 	const NOTIFY_TYPE_REPLY_AND_MODIFY = 1;
24 24
 	const NOTIFY_TYPE_REPLY_AND_TOPIC_START_FOLLOWING = 2;
25 25
 	const NOTIFY_TYPE_ONLY_REPLIES = 3;
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 	/**
29 29
 	 * Constants for frequencies.
30
-	*/
30
+	 */
31 31
 	const FREQUENCY_NOTHING = 0;
32 32
 	const FREQUENCY_EVERYTHING = 1;
33 33
 	const FREQUENCY_FIRST_UNREAD_MSG = 2;
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	const FREQUENCY_WEEKLY_DIGEST = 4;
36 36
 
37 37
 	/**
38
-     * This handles notifications when a new post is created - new topic, reply, quotes and mentions.
38
+	 * This handles notifications when a new post is created - new topic, reply, quotes and mentions.
39 39
 	 * @return bool Always returns true
40 40
 	 */
41 41
 	public function execute()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 		if ($type == 'edit')
117 117
 		{
118 118
 			// Filter out members who have already been notified about this post's topic
119
-			$unnotified = array_filter($watched, function ($member)
119
+			$unnotified = array_filter($watched, function($member)
120 120
 			{
121 121
 				return empty($member['sent']);
122 122
 			});
Please login to merge, or discard this patch.
Sources/Load.php 1 patch
Braces   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	// Set a list of common functions.
99 99
 	$ent_list = '&(?:#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . '|quot|amp|lt|gt|nbsp);';
100 100
 	$ent_check = empty($modSettings['disableEntityCheck']) ? function($string)
101
-		{
101
+	{
102 102
 			$string = preg_replace_callback('~(&#(\d{1,7}|x[0-9a-fA-F]{1,6});)~', 'entity_fix__callback', $string);
103 103
 			return $string;
104 104
 		} : function($string)
@@ -2176,7 +2176,6 @@  discard block
 block discarded – undo
2176 2176
 		loadLanguage('index+Modifications');
2177 2177
 		$context['template_layers'] = array();
2178 2178
 	}
2179
-
2180 2179
 	else
2181 2180
 	{
2182 2181
 		// Custom templates to load, or just default?
@@ -2555,14 +2554,12 @@  discard block
 block discarded – undo
2555 2554
 				$fileUrl = $settings['default_theme_url'] . '/css/' . $fileName;
2556 2555
 				$filePath = $settings['default_theme_dir'] . '/css/' . $fileName;
2557 2556
 			}
2558
-
2559 2557
 			else
2560 2558
 			{
2561 2559
 				$fileUrl = false;
2562 2560
 				$filePath = false;
2563 2561
 			}
2564 2562
 		}
2565
-
2566 2563
 		else
2567 2564
 		{
2568 2565
 			$fileUrl = $settings[$themeRef . '_url'] . '/css/' . $fileName;
@@ -2670,14 +2667,12 @@  discard block
 block discarded – undo
2670 2667
 				$fileUrl = $settings['default_theme_url'] . '/scripts/' . $fileName;
2671 2668
 				$filePath = $settings['default_theme_dir'] . '/scripts/' . $fileName;
2672 2669
 			}
2673
-
2674 2670
 			else
2675 2671
 			{
2676 2672
 				$fileUrl = false;
2677 2673
 				$filePath = false;
2678 2674
 			}
2679 2675
 		}
2680
-
2681 2676
 		else
2682 2677
 		{
2683 2678
 			$fileUrl = $settings[$themeRef . '_url'] . '/scripts/' . $fileName;
Please login to merge, or discard this patch.
Sources/ManageMaintenance.php 1 patch
Braces   -1 removed lines patch added patch discarded remove patch
@@ -2293,7 +2293,6 @@
 block discarded – undo
2293 2293
 		list ($hookData['class'], $hookData['method']) = explode('::', $modFunc);
2294 2294
 		$hookData['pureFunc'] = $hookData['method'];
2295 2295
 	}
2296
-
2297 2296
 	else
2298 2297
 		$hookData['pureFunc'] = $modFunc;
2299 2298
 
Please login to merge, or discard this patch.
other/install.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -960,7 +960,7 @@
 block discarded – undo
960 960
 	$incontext['continue'] = 1;
961 961
 
962 962
 	// Check Postgres setting
963
-	if ( $db_type === 'postgresql')
963
+	if ($db_type === 'postgresql')
964 964
 	{
965 965
 		load_database();
966 966
 		$result = $smcFunc['db_query']('', '
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -974,7 +974,7 @@
 block discarded – undo
974 974
 		{
975 975
 			$row = $smcFunc['db_fetch_assoc']($result);
976 976
 			if ($row['standard_conforming_strings'] !== 'on')
977
-				{
977
+			{
978 978
 					$incontext['continue'] = 0;
979 979
 					$incontext['error'] = $txt['error_pg_scs'];
980 980
 				}
Please login to merge, or discard this patch.
Sources/Profile-View.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 			AND a.is_read = 0' : '') . (!empty($alertIDs) ? '
262 262
 			AND a.id_alert IN ({array_int:alertIDs})' : '') . '
263 263
 		ORDER BY id_alert DESC' . (!empty($limit) ? '
264
-		LIMIT {int:limit}' : '') . (!empty($offset) ?'
264
+		LIMIT {int:limit}' : '') . (!empty($offset) ? '
265 265
 		OFFSET {int:offset}' : ''),
266 266
 		array(
267 267
 			'id_member' => $memID,
@@ -1108,20 +1108,20 @@  discard block
 block discarded – undo
1108 1108
 		$context['posts'][$key]['quickbuttons'] = array(
1109 1109
 			'reply' => array(
1110 1110
 				'label' => $txt['reply'],
1111
-				'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'],
1111
+				'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'],
1112 1112
 				'icon' => 'reply_button',
1113 1113
 				'show' => $post['can_reply']
1114 1114
 			),
1115 1115
 			'quote' => array(
1116 1116
 				'label' => $txt['quote_action'],
1117
-				'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'].';quote='.$post['id'],
1117
+				'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'] . ';quote=' . $post['id'],
1118 1118
 				'icon' => 'quote',
1119 1119
 				'show' => $post['can_quote']
1120 1120
 			),
1121 1121
 			'remove' => array(
1122 1122
 				'label' => $txt['remove'],
1123
-				'href' => $scripturl.'?action=deletemsg;msg='.$post['id'].';topic='.$post['topic'].';profile;u='.$context['member']['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'],
1124
-				'javascript' => 'data-confirm="'.$txt['remove_message'].'" class="you_sure"',
1123
+				'href' => $scripturl . '?action=deletemsg;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';profile;u=' . $context['member']['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1124
+				'javascript' => 'data-confirm="' . $txt['remove_message'] . '" class="you_sure"',
1125 1125
 				'icon' => 'remove_button',
1126 1126
 				'show' => $post['can_delete']
1127 1127
 			)
Please login to merge, or discard this patch.
Sources/Subs.php 3 patches
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -7161,32 +7161,32 @@  discard block
 block discarded – undo
7161 7161
  */
7162 7162
 function truncate_array($array, $max_length = 1900, $deep = 3)
7163 7163
 {
7164
-    $array = (array) $array;
7164
+	$array = (array) $array;
7165 7165
 
7166
-    $curr_length = array_length($array, $deep);
7166
+	$curr_length = array_length($array, $deep);
7167 7167
 
7168
-    if ($curr_length <= $max_length)
7169
-        return $array;
7168
+	if ($curr_length <= $max_length)
7169
+		return $array;
7170 7170
 
7171
-    else
7172
-    {
7173
-        // Truncate each element's value to a reasonable length
7174
-        $param_max = floor($max_length / count($array));
7171
+	else
7172
+	{
7173
+		// Truncate each element's value to a reasonable length
7174
+		$param_max = floor($max_length / count($array));
7175 7175
 
7176
-        $current_deep = $deep - 1;
7176
+		$current_deep = $deep - 1;
7177 7177
 
7178
-        foreach ($array as $key => &$value)
7179
-        {
7180
-            if (is_array($value))
7181
-                if ($current_deep > 0)
7182
-                    $value = truncate_array($value, $current_deep);
7178
+		foreach ($array as $key => &$value)
7179
+		{
7180
+			if (is_array($value))
7181
+				if ($current_deep > 0)
7182
+					$value = truncate_array($value, $current_deep);
7183 7183
 
7184
-            else
7185
-                $value = substr($value, 0, $param_max - strlen($key) - 5);
7186
-        }
7184
+			else
7185
+				$value = substr($value, 0, $param_max - strlen($key) - 5);
7186
+		}
7187 7187
 
7188
-        return $array;
7189
-    }
7188
+		return $array;
7189
+	}
7190 7190
 }
7191 7191
 
7192 7192
 /**
@@ -7197,29 +7197,29 @@  discard block
 block discarded – undo
7197 7197
  */
7198 7198
 function array_length($array, $deep = 3)
7199 7199
 {
7200
-    // Work with arrays
7201
-    $array = (array) $array;
7202
-    $length = 0;
7200
+	// Work with arrays
7201
+	$array = (array) $array;
7202
+	$length = 0;
7203 7203
 
7204
-    $deep_count = $deep - 1;
7204
+	$deep_count = $deep - 1;
7205 7205
 
7206
-    foreach ($array as $value)
7207
-    {
7208
-        // Recursive?
7209
-        if (is_array($value))
7210
-        {
7211
-            // No can't do
7212
-            if ($deep_count <= 0)
7213
-                continue;
7206
+	foreach ($array as $value)
7207
+	{
7208
+		// Recursive?
7209
+		if (is_array($value))
7210
+		{
7211
+			// No can't do
7212
+			if ($deep_count <= 0)
7213
+				continue;
7214 7214
 
7215
-            $length += array_length($value, $deep_count);
7216
-        }
7215
+			$length += array_length($value, $deep_count);
7216
+		}
7217 7217
 
7218
-        else
7219
-            $length += strlen($value);
7220
-    }
7218
+		else
7219
+			$length += strlen($value);
7220
+	}
7221 7221
 
7222
-    return $length;
7222
+	return $length;
7223 7223
 }
7224 7224
 
7225 7225
 ?>
7226 7226
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 			{
396 396
 				$val = 'CASE ';
397 397
 				foreach ($members as $k => $v)
398
-					$val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' ';
398
+					$val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' ';
399 399
 				$val = $val . ' END';
400 400
 				$type = 'raw';
401 401
 			}
@@ -1055,11 +1055,11 @@  discard block
 block discarded – undo
1055 1055
 			// Anything that isn't a specification, punctuation mark, or whitespace.
1056 1056
 			'~(?<!%)\p{L}|[^\p{L}\p{P}\s]~u',
1057 1057
 			// A series of punctuation marks (except %), possibly separated by whitespace.
1058
-			'~([^%\P{P}])(\s*)(?'.'>(\1|[^%\P{Po}])\s*(?!$))*~u',
1058
+			'~([^%\P{P}])(\s*)(?' . '>(\1|[^%\P{Po}])\s*(?!$))*~u',
1059 1059
 			// Unwanted trailing punctuation and whitespace.
1060
-			'~(?'.'>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1060
+			'~(?' . '>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1061 1061
 			// Unwanted opening punctuation and whitespace.
1062
-			'~^\s*(?'.'>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1062
+			'~^\s*(?' . '>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1063 1063
 		),
1064 1064
 		array(
1065 1065
 			'',
@@ -1466,7 +1466,7 @@  discard block
 block discarded – undo
1466 1466
 							$width = !empty($width) ? ' width="' . $width . '"' : '';
1467 1467
 							$height = !empty($height) ? ' height="' . $height . '"' : '';
1468 1468
 
1469
-							$returnContext .= '<div class="videocontainer"><div><video controls preload="none" src="'. $currentAttachment['href'] . '" playsinline' . $width . $height . ' style="object-fit:contain;"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : '');
1469
+							$returnContext .= '<div class="videocontainer"><div><video controls preload="none" src="' . $currentAttachment['href'] . '" playsinline' . $width . $height . ' style="object-fit:contain;"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : '');
1470 1470
 						}
1471 1471
 						// Audio.
1472 1472
 						elseif (strpos($currentAttachment['mime_type'], 'audio/') === 0)
@@ -1474,7 +1474,7 @@  discard block
 block discarded – undo
1474 1474
 							$width = 'max-width:100%; width: ' . (!empty($width) ? $width : '400') . 'px;';
1475 1475
 							$height = !empty($height) ? 'height: ' . $height . 'px;' : '';
1476 1476
 
1477
-							$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>';
1477
+							$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>';
1478 1478
 						}
1479 1479
 						// Anything else.
1480 1480
 						else
@@ -1637,7 +1637,7 @@  discard block
 block discarded – undo
1637 1637
 				'type' => 'unparsed_commas_content',
1638 1638
 				'test' => '\d+,\d+\]',
1639 1639
 				'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>',
1640
-				'validate' => function (&$tag, &$data, $disabled)
1640
+				'validate' => function(&$tag, &$data, $disabled)
1641 1641
 				{
1642 1642
 					$scheme = parse_url($data[0], PHP_URL_SCHEME);
1643 1643
 					if (empty($scheme))
@@ -2197,7 +2197,7 @@  discard block
 block discarded – undo
2197 2197
 		$codes[] = array(
2198 2198
 			'tag' => 'cowsay',
2199 2199
 			'parameters' => array(
2200
-				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2200
+				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc)
2201 2201
 					{
2202 2202
 						static $css_added;
2203 2203
 
@@ -2214,7 +2214,7 @@  discard block
 block discarded – undo
2214 2214
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2215 2215
 					},
2216 2216
 				),
2217
-				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2217
+				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function($tongue) use ($smcFunc)
2218 2218
 					{
2219 2219
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2220 2220
 					},
@@ -4178,7 +4178,7 @@  discard block
 block discarded – undo
4178 4178
 	$toMinify = array();
4179 4179
 	$normal = array();
4180 4180
 
4181
-	usort($context['css_files'], function ($a, $b)
4181
+	usort($context['css_files'], function($a, $b)
4182 4182
 	{
4183 4183
 		return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0);
4184 4184
 	});
@@ -5643,13 +5643,13 @@  discard block
 block discarded – undo
5643 5643
 
5644 5644
 	// UTF-8 occurences of MS special characters
5645 5645
 	$findchars_utf8 = array(
5646
-		"\xe2\x80\x9a",	// single low-9 quotation mark
5647
-		"\xe2\x80\x9e",	// double low-9 quotation mark
5648
-		"\xe2\x80\xa6",	// horizontal ellipsis
5649
-		"\xe2\x80\x98",	// left single curly quote
5650
-		"\xe2\x80\x99",	// right single curly quote
5651
-		"\xe2\x80\x9c",	// left double curly quote
5652
-		"\xe2\x80\x9d",	// right double curly quote
5646
+		"\xe2\x80\x9a", // single low-9 quotation mark
5647
+		"\xe2\x80\x9e", // double low-9 quotation mark
5648
+		"\xe2\x80\xa6", // horizontal ellipsis
5649
+		"\xe2\x80\x98", // left single curly quote
5650
+		"\xe2\x80\x99", // right single curly quote
5651
+		"\xe2\x80\x9c", // left double curly quote
5652
+		"\xe2\x80\x9d", // right double curly quote
5653 5653
 	);
5654 5654
 
5655 5655
 	// windows 1252 / iso equivalents
@@ -5665,13 +5665,13 @@  discard block
 block discarded – undo
5665 5665
 
5666 5666
 	// safe replacements
5667 5667
 	$replacechars = array(
5668
-		',',	// &sbquo;
5669
-		',,',	// &bdquo;
5670
-		'...',	// &hellip;
5671
-		"'",	// &lsquo;
5672
-		"'",	// &rsquo;
5673
-		'"',	// &ldquo;
5674
-		'"',	// &rdquo;
5668
+		',', // &sbquo;
5669
+		',,', // &bdquo;
5670
+		'...', // &hellip;
5671
+		"'", // &lsquo;
5672
+		"'", // &rsquo;
5673
+		'"', // &ldquo;
5674
+		'"', // &rdquo;
5675 5675
 	);
5676 5676
 
5677 5677
 	if ($context['utf8'])
@@ -6845,7 +6845,7 @@  discard block
 block discarded – undo
6845 6845
 			EXISTS (
6846 6846
 				SELECT bpv.id_board
6847 6847
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
6848
-				WHERE bpv.id_group IN ('. implode(',', $groups) .')
6848
+				WHERE bpv.id_group IN ('. implode(',', $groups) . ')
6849 6849
 					AND bpv.deny = 0
6850 6850
 					AND bpv.id_board = b.id_board
6851 6851
 			)';
@@ -6855,7 +6855,7 @@  discard block
 block discarded – undo
6855 6855
 			AND NOT EXISTS (
6856 6856
 				SELECT bpv.id_board
6857 6857
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
6858
-				WHERE bpv.id_group IN ( '. implode(',', $groups) .')
6858
+				WHERE bpv.id_group IN ( '. implode(',', $groups) . ')
6859 6859
 					AND bpv.deny = 1
6860 6860
 					AND bpv.id_board = b.id_board
6861 6861
 			)';
@@ -7126,8 +7126,8 @@  discard block
 block discarded – undo
7126 7126
 	$i = 0;
7127 7127
 	while (empty($done))
7128 7128
 	{
7129
-		if (strpos($format, '{'. --$i . '}') !== false)
7130
-			$replacements['{'. $i . '}'] = array_pop($list);
7129
+		if (strpos($format, '{' . --$i . '}') !== false)
7130
+			$replacements['{' . $i . '}'] = array_pop($list);
7131 7131
 		else
7132 7132
 			$done = true;
7133 7133
 	}
@@ -7137,8 +7137,8 @@  discard block
 block discarded – undo
7137 7137
 	$i = 0;
7138 7138
 	while (empty($done))
7139 7139
 	{
7140
-		if (strpos($format, '{'. ++$i . '}') !== false)
7141
-			$replacements['{'. $i . '}'] = array_shift($list);
7140
+		if (strpos($format, '{' . ++$i . '}') !== false)
7141
+			$replacements['{' . $i . '}'] = array_shift($list);
7142 7142
 		else
7143 7143
 			$done = true;
7144 7144
 	}
Please login to merge, or discard this patch.
Braces   +3 added lines, -7 removed lines patch added patch discarded remove patch
@@ -306,7 +306,6 @@  discard block
 block discarded – undo
306 306
 		$condition = 'id_member IN ({array_int:members})';
307 307
 		$parameters['members'] = $members;
308 308
 	}
309
-
310 309
 	elseif ($members === null)
311 310
 		$condition = '1=1';
312 311
 
@@ -2198,7 +2197,7 @@  discard block
 block discarded – undo
2198 2197
 			'tag' => 'cowsay',
2199 2198
 			'parameters' => array(
2200 2199
 				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2201
-					{
2200
+				{
2202 2201
 						static $css_added;
2203 2202
 
2204 2203
 						if (empty($css_added))
@@ -2215,7 +2214,7 @@  discard block
 block discarded – undo
2215 2214
 					},
2216 2215
 				),
2217 2216
 				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2218
-					{
2217
+				{
2219 2218
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2220 2219
 					},
2221 2220
 				),
@@ -3313,7 +3312,7 @@  discard block
 block discarded – undo
3313 3312
 
3314 3313
 	// Replace away!
3315 3314
 	$message = preg_replace_callback($smileyPregSearch, function($matches) use ($smileyPregReplacements)
3316
-		{
3315
+	{
3317 3316
 			return $smileyPregReplacements[$matches[1]];
3318 3317
 		}, $message);
3319 3318
 }
@@ -4100,7 +4099,6 @@  discard block
 block discarded – undo
4100 4099
 				if (!isset($minSeed) && isset($js_file['options']['seed']))
4101 4100
 					$minSeed = $js_file['options']['seed'];
4102 4101
 			}
4103
-
4104 4102
 			else
4105 4103
 			{
4106 4104
 				echo '
@@ -6282,7 +6280,6 @@  discard block
 block discarded – undo
6282 6280
 			$isWritable = true;
6283 6281
 			break;
6284 6282
 		}
6285
-
6286 6283
 		else
6287 6284
 			@chmod($file, $val);
6288 6285
 	}
@@ -7214,7 +7211,6 @@  discard block
 block discarded – undo
7214 7211
 
7215 7212
             $length += array_length($value, $deep_count);
7216 7213
         }
7217
-
7218 7214
         else
7219 7215
             $length += strlen($value);
7220 7216
     }
Please login to merge, or discard this patch.
Sources/Security.php 1 patch
Braces   -4 removed lines patch added patch discarded remove patch
@@ -1261,7 +1261,6 @@  discard block
 block discarded – undo
1261 1261
 
1262 1262
 			continue;
1263 1263
 		}
1264
-
1265 1264
 		else
1266 1265
 		{
1267 1266
 			$fh = @fopen($path . '/.htaccess', 'w');
@@ -1273,7 +1272,6 @@  discard block
 block discarded – undo
1273 1272
 	Deny from all' . $close);
1274 1273
 				fclose($fh);
1275 1274
 			}
1276
-
1277 1275
 			else
1278 1276
 				$errors[] = 'htaccess_cannot_create_file';
1279 1277
 		}
@@ -1284,7 +1282,6 @@  discard block
 block discarded – undo
1284 1282
 
1285 1283
 			continue;
1286 1284
 		}
1287
-
1288 1285
 		else
1289 1286
 		{
1290 1287
 			$fh = @fopen($path . '/index.php', 'w');
@@ -1311,7 +1308,6 @@  discard block
 block discarded – undo
1311 1308
 ?' . '>');
1312 1309
 				fclose($fh);
1313 1310
 			}
1314
-
1315 1311
 			else
1316 1312
 				$errors[] = 'index-php_cannot_create_file';
1317 1313
 		}
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
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
 		WHERE t.id_board = {int:current_board} '
331 331
 			. (!$modSettings['postmod_active'] || $context['can_approve_posts'] ? '' : '
332 332
 			AND (t.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR t.id_member_started = {int:current_member}') . ')') . (!empty($message_index_topic_wheres) ? ' 
333
-			AND ' . implode("\n\t\t\t\tAND ", $message_index_topic_wheres) : ''). '
333
+			AND ' . implode("\n\t\t\t\tAND ", $message_index_topic_wheres) : '') . '
334 334
 		ORDER BY is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . '
335 335
 		LIMIT {int:maxindex}
336 336
 			OFFSET {int:start} ';
Please login to merge, or discard this patch.