Passed
Push — release-2.1 ( 493a4c...4017f8 )
by Mathias
09:59 queued 10s
created
Sources/ManageErrors.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -355,8 +355,8 @@
 block discarded – undo
355 355
 	elseif (isset($_POST['delall']) && isset($filter))
356 356
 	{
357 357
 		// ip need a different placeholder type
358
-		$filter_type = $filter['variable'] == 'ip'? 'inet' : 'string';
359
-		$filter_op = $filter['variable'] == 'ip'? '=' : 'LIKE';
358
+		$filter_type = $filter['variable'] == 'ip' ? 'inet' : 'string';
359
+		$filter_op = $filter['variable'] == 'ip' ? '=' : 'LIKE';
360 360
 		$smcFunc['db_query']('', '
361 361
 			DELETE FROM {db_prefix}log_errors
362 362
 			WHERE ' . $filter['variable'] . ' ' . $filter_op . ' {' . $filter_type . ':filter}',
Please login to merge, or discard this patch.
Sources/Help.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,8 @@
 block discarded – undo
163 163
 	else
164 164
 		$context['help_text'] = $_GET['help'];
165 165
 
166
-	switch ($_GET['help']) {
166
+	switch ($_GET['help'])
167
+	{
167 168
 		case 'cal_short_months':
168 169
 			$context['help_text'] = sprintf($context['help_text'], $txt['months_short'][1], $txt['months_titles'][1]);
169 170
 			break;
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,
@@ -1160,20 +1160,20 @@  discard block
 block discarded – undo
1160 1160
 		$context['posts'][$key]['quickbuttons'] = array(
1161 1161
 			'reply' => array(
1162 1162
 				'label' => $txt['reply'],
1163
-				'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'],
1163
+				'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'],
1164 1164
 				'icon' => 'reply_button',
1165 1165
 				'show' => $post['can_reply']
1166 1166
 			),
1167 1167
 			'quote' => array(
1168 1168
 				'label' => $txt['quote_action'],
1169
-				'href' => $scripturl.'?action=post;topic='.$post['topic'].'.'.$post['start'].';quote='.$post['id'],
1169
+				'href' => $scripturl . '?action=post;topic=' . $post['topic'] . '.' . $post['start'] . ';quote=' . $post['id'],
1170 1170
 				'icon' => 'quote',
1171 1171
 				'show' => $post['can_quote']
1172 1172
 			),
1173 1173
 			'remove' => array(
1174 1174
 				'label' => $txt['remove'],
1175
-				'href' => $scripturl.'?action=deletemsg;msg='.$post['id'].';topic='.$post['topic'].';profile;u='.$context['member']['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'],
1176
-				'javascript' => 'data-confirm="'.$txt['remove_message'].'"',
1175
+				'href' => $scripturl . '?action=deletemsg;msg=' . $post['id'] . ';topic=' . $post['topic'] . ';profile;u=' . $context['member']['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1176
+				'javascript' => 'data-confirm="' . $txt['remove_message'] . '"',
1177 1177
 				'class' => 'you_sure',
1178 1178
 				'icon' => 'remove_button',
1179 1179
 				'show' => $post['can_delete']
Please login to merge, or discard this patch.
Sources/tasks/ExportProfileData.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
 		$feed_meta = array(
205 205
 			'title' => sprintf($txt['profile_of_username'], $user_profile[$uid]['real_name']),
206
-			'desc' => sentence_list(array_map(function ($datatype) use ($txt) { return $txt[$datatype]; }, array_keys($included))),
206
+			'desc' => sentence_list(array_map(function($datatype) use ($txt) { return $txt[$datatype]; }, array_keys($included))),
207 207
 			'author' => $mbname,
208 208
 			'source' => $scripturl . '?action=profile;u=' . $uid,
209 209
 			'self' => '', // Unused, but can't be null.
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
 					'src' => 'src="' . $currentAttachment['href'] . '" onerror="$(\'.dlattach_' . $currentAttachment['id'] . '\').show(); $(\'.dlattach_' . $currentAttachment['id'] . '\').css({\'position\': \'absolute\'});"',
724 724
 				),
725 725
 				$returnContext
726
-			) . $hidden_orig_link . '</span>' ;
726
+			) . $hidden_orig_link . '</span>';
727 727
 		}
728 728
 		elseif (strpos($currentAttachment['mime_type'], 'video/') === 0)
729 729
 		{
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,9 @@
 block discarded – undo
203 203
 
204 204
 		$feed_meta = array(
205 205
 			'title' => sprintf($txt['profile_of_username'], $user_profile[$uid]['real_name']),
206
-			'desc' => sentence_list(array_map(function ($datatype) use ($txt) { return $txt[$datatype]; }, array_keys($included))),
206
+			'desc' => sentence_list(array_map(function ($datatype) use ($txt)
207
+			{
208
+return $txt[$datatype]; }, array_keys($included))),
207 209
 			'author' => $mbname,
208 210
 			'source' => $scripturl . '?action=profile;u=' . $uid,
209 211
 			'self' => '', // Unused, but can't be null.
Please login to merge, or discard this patch.
Themes/default/ModerationCenter.template.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -393,17 +393,17 @@  discard block
 block discarded – undo
393 393
 		$quickbuttons = array(
394 394
 			'approve' => array(
395 395
 				'label' => $txt['approve'],
396
-				'href' => $scripturl.'?action=moderate;area=postmod;sa='.$context['current_view'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'].';approve='.$item['id'],
396
+				'href' => $scripturl . '?action=moderate;area=postmod;sa=' . $context['current_view'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';approve=' . $item['id'],
397 397
 				'icon' => 'approve',
398 398
 			),
399 399
 			'delete' => array(
400 400
 				'label' => $txt['remove'],
401
-				'href' => $scripturl.'?action=moderate;area=postmod;sa='.$context['current_view'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'].';delete='.$item['id'],
401
+				'href' => $scripturl . '?action=moderate;area=postmod;sa=' . $context['current_view'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';delete=' . $item['id'],
402 402
 				'icon' => 'remove_button',
403 403
 				'show' => $item['can_delete']
404 404
 			),
405 405
 			'quickmod' => array(
406
-				'content' => '<input type="checkbox" name="item[]" value="'.$item['id'].'" checked>',
406
+				'content' => '<input type="checkbox" name="item[]" value="' . $item['id'] . '" checked>',
407 407
 				'show' => !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1
408 408
 			),
409 409
 		);
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
 	$quickbuttons = array(
469 469
 		'delete' => array(
470 470
 			'label' => $txt['remove_message'],
471
-			'href' => $scripturl.'?action=moderate;area=userwatch;sa=post;delete='.$post['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'],
471
+			'href' => $scripturl . '?action=moderate;area=userwatch;sa=post;delete=' . $post['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'],
472 472
 			'javascript' => 'data-confirm="' . $txt['mc_watched_users_delete_post'] . '"',
473 473
 			'class' => 'you_sure',
474 474
 			'icon' => 'remove_button',
Please login to merge, or discard this patch.
Themes/default/Profile.template.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1721,7 +1721,7 @@  discard block
 block discarded – undo
1721 1721
 		{
1722 1722
 			// Avoid double separators and empty titled sections
1723 1723
 			$empty_section = true;
1724
-			for ($j=$i+1; $j < count($context['theme_options']); $j++)
1724
+			for ($j = $i + 1; $j < count($context['theme_options']); $j++)
1725 1725
 			{
1726 1726
 				// Found another separator, so we're done
1727 1727
 				if (!is_array($context['theme_options'][$j]))
@@ -2700,8 +2700,7 @@  discard block
 block discarded – undo
2700 2700
 		foreach ($context['post_errors'] as $error)
2701 2701
 		{
2702 2702
 			$text_key_error = $error == 'password_short' ?
2703
-				sprintf($txt['profile_error_' . $error], (empty($modSettings['password_strength']) ? 4 : 8)) :
2704
-				$txt['profile_error_' . $error];
2703
+				sprintf($txt['profile_error_' . $error], (empty($modSettings['password_strength']) ? 4 : 8)) : $txt['profile_error_' . $error];
2705 2704
 
2706 2705
 			echo '
2707 2706
 				<li>', isset($txt['profile_error_' . $error]) ? $text_key_error : $error, '</li>';
Please login to merge, or discard this patch.
Sources/Subs.php 2 patches
Braces   +3 added lines, -8 removed lines patch added patch discarded remove patch
@@ -279,7 +279,6 @@  discard block
 block discarded – undo
279 279
 		$condition = 'id_member IN ({array_int:members})';
280 280
 		$parameters['members'] = $members;
281 281
 	}
282
-
283 282
 	elseif ($members === null)
284 283
 		$condition = '1=1';
285 284
 
@@ -382,11 +381,9 @@  discard block
 block discarded – undo
382 381
 				$val = $val . ' END';
383 382
 				$type = 'raw';
384 383
 			}
385
-
386 384
 			else
387 385
 				$val = alert_count($members, true);
388 386
 		}
389
-
390 387
 		elseif ($type == 'int' && ($val === '+' || $val === '-'))
391 388
 		{
392 389
 			$val = $var . ' ' . $val . ' 1';
@@ -2176,12 +2173,12 @@  discard block
 block discarded – undo
2176 2173
 			'tag' => 'cowsay',
2177 2174
 			'parameters' => array(
2178 2175
 				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2179
-					{
2176
+				{
2180 2177
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2181 2178
 					},
2182 2179
 				),
2183 2180
 				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2184
-					{
2181
+				{
2185 2182
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2186 2183
 					},
2187 2184
 				),
@@ -3279,7 +3276,7 @@  discard block
 block discarded – undo
3279 3276
 
3280 3277
 	// Replace away!
3281 3278
 	$message = preg_replace_callback($smileyPregSearch, function($matches) use ($smileyPregReplacements)
3282
-		{
3279
+	{
3283 3280
 			return $smileyPregReplacements[$matches[1]];
3284 3281
 		}, $message);
3285 3282
 }
@@ -4077,7 +4074,6 @@  discard block
 block discarded – undo
4077 4074
 				if (!isset($minSeed) && isset($js_file['options']['seed']))
4078 4075
 					$minSeed = $js_file['options']['seed'];
4079 4076
 			}
4080
-
4081 4077
 			else
4082 4078
 			{
4083 4079
 				echo '
@@ -6360,7 +6356,6 @@  discard block
 block discarded – undo
6360 6356
 			$isWritable = true;
6361 6357
 			break;
6362 6358
 		}
6363
-
6364 6359
 		else
6365 6360
 			@chmod($file, $val);
6366 6361
 	}
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 			{
378 378
 				$val = 'CASE ';
379 379
 				foreach ($members as $k => $v)
380
-					$val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' ';
380
+					$val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' ';
381 381
 
382 382
 				$val = $val . ' END';
383 383
 				$type = 'raw';
@@ -1039,11 +1039,11 @@  discard block
 block discarded – undo
1039 1039
 			// Anything that isn't a specification, punctuation mark, or whitespace.
1040 1040
 			'~(?<!%)\p{L}|[^\p{L}\p{P}\s]~u',
1041 1041
 			// A series of punctuation marks (except %), possibly separated by whitespace.
1042
-			'~([^%\P{P}])(\s*)(?'.'>(\1|[^%\P{Po}])\s*(?!$))*~u',
1042
+			'~([^%\P{P}])(\s*)(?' . '>(\1|[^%\P{Po}])\s*(?!$))*~u',
1043 1043
 			// Unwanted trailing punctuation and whitespace.
1044
-			'~(?'.'>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1044
+			'~(?' . '>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1045 1045
 			// Unwanted opening punctuation and whitespace.
1046
-			'~^\s*(?'.'>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1046
+			'~^\s*(?' . '>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1047 1047
 		),
1048 1048
 		array(
1049 1049
 			'',
@@ -1155,7 +1155,7 @@  discard block
 block discarded – undo
1155 1155
 				$dt_user = new DateTime('@' . $timestamp);
1156 1156
 				$temp_offset = $dtz_user->getOffset($dt_user);
1157 1157
 				if ($temp_offset !== false)
1158
-					$user_offset = $temp_offset/3600;
1158
+					$user_offset = $temp_offset / 3600;
1159 1159
 			}
1160 1160
 		}
1161 1161
 	}
@@ -1486,7 +1486,7 @@  discard block
 block discarded – undo
1486 1486
 							$width = !empty($width) ? ' width="' . $width . '"' : '';
1487 1487
 							$height = !empty($height) ? ' height="' . $height . '"' : '';
1488 1488
 
1489
-							$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>' : '');
1489
+							$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>' : '');
1490 1490
 						}
1491 1491
 						// Audio.
1492 1492
 						elseif (strpos($currentAttachment['mime_type'], 'audio/') === 0)
@@ -1494,7 +1494,7 @@  discard block
 block discarded – undo
1494 1494
 							$width = 'max-width:100%; width: ' . (!empty($width) ? $width : '400') . 'px;';
1495 1495
 							$height = !empty($height) ? 'height: ' . $height . 'px;' : '';
1496 1496
 
1497
-							$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>';
1497
+							$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>';
1498 1498
 						}
1499 1499
 						// Anything else.
1500 1500
 						else
@@ -1663,7 +1663,7 @@  discard block
 block discarded – undo
1663 1663
 				'type' => 'unparsed_commas_content',
1664 1664
 				'test' => '\d+,\d+\]',
1665 1665
 				'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>',
1666
-				'validate' => function (&$tag, &$data, $disabled)
1666
+				'validate' => function(&$tag, &$data, $disabled)
1667 1667
 				{
1668 1668
 					$scheme = parse_url($data[0], PHP_URL_SCHEME);
1669 1669
 					if (empty($scheme))
@@ -2201,12 +2201,12 @@  discard block
 block discarded – undo
2201 2201
 		$codes[] = array(
2202 2202
 			'tag' => 'cowsay',
2203 2203
 			'parameters' => array(
2204
-				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2204
+				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc)
2205 2205
 					{
2206 2206
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2207 2207
 					},
2208 2208
 				),
2209
-				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2209
+				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function($tongue) use ($smcFunc)
2210 2210
 					{
2211 2211
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2212 2212
 					},
@@ -3578,7 +3578,7 @@  discard block
 block discarded – undo
3578 3578
 		if ($fp != false)
3579 3579
 		{
3580 3580
 			// Send the HEAD request (since we don't have to worry about chunked, HTTP/1.1 is fine here.)
3581
-			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");
3581
+			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");
3582 3582
 
3583 3583
 			// Read in the HTTP/1.1 or whatever.
3584 3584
 			$test = substr(fgets($fp, 11), -1);
@@ -4182,7 +4182,7 @@  discard block
 block discarded – undo
4182 4182
 	$toMinify = array();
4183 4183
 	$normal = array();
4184 4184
 
4185
-	uasort($context['css_files'], function ($a, $b)
4185
+	uasort($context['css_files'], function($a, $b)
4186 4186
 	{
4187 4187
 		return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0);
4188 4188
 	});
@@ -5478,7 +5478,7 @@  discard block
 block discarded – undo
5478 5478
 			{
5479 5479
 				fwrite($fp, 'GET ' . ($match[6] !== '/' ? str_replace(' ', '%20', $match[6]) : '') . ' HTTP/1.0' . "\r\n");
5480 5480
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
5481
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
5481
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
5482 5482
 				if ($keep_alive)
5483 5483
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n\r\n");
5484 5484
 				else
@@ -5488,7 +5488,7 @@  discard block
 block discarded – undo
5488 5488
 			{
5489 5489
 				fwrite($fp, 'POST ' . ($match[6] !== '/' ? $match[6] : '') . ' HTTP/1.0' . "\r\n");
5490 5490
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
5491
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
5491
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
5492 5492
 				if ($keep_alive)
5493 5493
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n");
5494 5494
 				else
@@ -5736,13 +5736,13 @@  discard block
 block discarded – undo
5736 5736
 
5737 5737
 	// UTF-8 occurences of MS special characters
5738 5738
 	$findchars_utf8 = array(
5739
-		"\xe2\x80\x9a",	// single low-9 quotation mark
5740
-		"\xe2\x80\x9e",	// double low-9 quotation mark
5741
-		"\xe2\x80\xa6",	// horizontal ellipsis
5742
-		"\xe2\x80\x98",	// left single curly quote
5743
-		"\xe2\x80\x99",	// right single curly quote
5744
-		"\xe2\x80\x9c",	// left double curly quote
5745
-		"\xe2\x80\x9d",	// right double curly quote
5739
+		"\xe2\x80\x9a", // single low-9 quotation mark
5740
+		"\xe2\x80\x9e", // double low-9 quotation mark
5741
+		"\xe2\x80\xa6", // horizontal ellipsis
5742
+		"\xe2\x80\x98", // left single curly quote
5743
+		"\xe2\x80\x99", // right single curly quote
5744
+		"\xe2\x80\x9c", // left double curly quote
5745
+		"\xe2\x80\x9d", // right double curly quote
5746 5746
 	);
5747 5747
 
5748 5748
 	// windows 1252 / iso equivalents
@@ -5758,13 +5758,13 @@  discard block
 block discarded – undo
5758 5758
 
5759 5759
 	// safe replacements
5760 5760
 	$replacechars = array(
5761
-		',',	// &sbquo;
5762
-		',,',	// &bdquo;
5763
-		'...',	// &hellip;
5764
-		"'",	// &lsquo;
5765
-		"'",	// &rsquo;
5766
-		'"',	// &ldquo;
5767
-		'"',	// &rdquo;
5761
+		',', // &sbquo;
5762
+		',,', // &bdquo;
5763
+		'...', // &hellip;
5764
+		"'", // &lsquo;
5765
+		"'", // &rsquo;
5766
+		'"', // &ldquo;
5767
+		'"', // &rdquo;
5768 5768
 	);
5769 5769
 
5770 5770
 	if ($context['utf8'])
@@ -6949,7 +6949,7 @@  discard block
 block discarded – undo
6949 6949
 			EXISTS (
6950 6950
 				SELECT bpv.id_board
6951 6951
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
6952
-				WHERE bpv.id_group IN ('. implode(',', $groups) .')
6952
+				WHERE bpv.id_group IN ('. implode(',', $groups) . ')
6953 6953
 					AND bpv.deny = 0
6954 6954
 					AND bpv.id_board = b.id_board
6955 6955
 			)';
@@ -6959,7 +6959,7 @@  discard block
 block discarded – undo
6959 6959
 			AND NOT EXISTS (
6960 6960
 				SELECT bpv.id_board
6961 6961
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
6962
-				WHERE bpv.id_group IN ( '. implode(',', $groups) .')
6962
+				WHERE bpv.id_group IN ( '. implode(',', $groups) . ')
6963 6963
 					AND bpv.deny = 1
6964 6964
 					AND bpv.id_board = b.id_board
6965 6965
 			)';
@@ -7230,8 +7230,8 @@  discard block
 block discarded – undo
7230 7230
 	$i = 0;
7231 7231
 	while (empty($done))
7232 7232
 	{
7233
-		if (strpos($format, '{'. --$i . '}') !== false)
7234
-			$replacements['{'. $i . '}'] = array_pop($list);
7233
+		if (strpos($format, '{' . --$i . '}') !== false)
7234
+			$replacements['{' . $i . '}'] = array_pop($list);
7235 7235
 		else
7236 7236
 			$done = true;
7237 7237
 	}
@@ -7241,8 +7241,8 @@  discard block
 block discarded – undo
7241 7241
 	$i = 0;
7242 7242
 	while (empty($done))
7243 7243
 	{
7244
-		if (strpos($format, '{'. ++$i . '}') !== false)
7245
-			$replacements['{'. $i . '}'] = array_shift($list);
7244
+		if (strpos($format, '{' . ++$i . '}') !== false)
7245
+			$replacements['{' . $i . '}'] = array_shift($list);
7246 7246
 		else
7247 7247
 			$done = true;
7248 7248
 	}
Please login to merge, or discard this patch.
Sources/ManageSettings.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1860,25 +1860,25 @@
 block discarded – undo
1860 1860
 		$fields = array();
1861 1861
 		$new_sort = array();
1862 1862
 
1863
-		while($row = $smcFunc['db_fetch_assoc']($request))
1863
+		while ($row = $smcFunc['db_fetch_assoc']($request))
1864 1864
 				$fields[] = $row['id_field'];
1865 1865
 		$smcFunc['db_free_result']($request);
1866 1866
 
1867 1867
 		$idx = array_search($context['fid'], $fields);
1868 1868
 
1869
-		if ($_GET['move'] == 'down' && count($fields) - 1 > $idx )
1869
+		if ($_GET['move'] == 'down' && count($fields) - 1 > $idx)
1870 1870
 		{
1871
-				$new_sort = array_slice($fields ,0 ,$idx ,true);
1871
+				$new_sort = array_slice($fields, 0, $idx, true);
1872 1872
 				$new_sort[] = $fields[$idx + 1];
1873 1873
 				$new_sort[] = $fields[$idx];
1874
-				$new_sort += array_slice($fields ,$idx + 2 ,count($fields) ,true);
1874
+				$new_sort += array_slice($fields, $idx + 2, count($fields), true);
1875 1875
 		}
1876 1876
 		elseif ($context['fid'] > 0 and $idx < count($fields))
1877 1877
 		{
1878
-				$new_sort = array_slice($fields ,0 ,($idx - 1) ,true);
1878
+				$new_sort = array_slice($fields, 0, ($idx - 1), true);
1879 1879
 				$new_sort[] = $fields[$idx];
1880 1880
 				$new_sort[] = $fields[$idx - 1];
1881
-				$new_sort += array_slice($fields ,($idx + 1) ,count($fields) ,true);
1881
+				$new_sort += array_slice($fields, ($idx + 1), count($fields), true);
1882 1882
 		}
1883 1883
 		else
1884 1884
 			redirectexit('action=admin;area=featuresettings;sa=profile'); // @todo implement an error handler
Please login to merge, or discard this patch.
Sources/LogInOut.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
320 320
 		{
321 321
 			// PHPBB 3 check this function exists in PHP 5.5 or higher
322 322
 			if (function_exists('password_verify'))
323
-				$other_passwords[] = password_verify($_POST['passwrd'],$user_settings['password_salt']);
323
+				$other_passwords[] = password_verify($_POST['passwrd'], $user_settings['password_salt']);
324 324
 
325 325
 			// PHP-Fusion
326 326
 			$other_passwords[] = hash_hmac('sha256', $_POST['passwrd'], $user_settings['password_salt']);
Please login to merge, or discard this patch.