Passed
Pull Request — development (#3442)
by Elk
12:13 queued 06:23
created
sources/subs/Admin.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
 		'file_versions_subs' => SUBSDIR,
242 242
 		'file_versions_modules' => SOURCEDIR . '/modules',
243 243
 	);
244
-	$tmp_version_info = array_combine(array_keys($directories),array_fill(0,count($directories),array()));
244
+	$tmp_version_info = array_combine(array_keys($directories), array_fill(0, count($directories), array()));
245 245
 	readFileVersions($tmp_version_info, $directories, '.php', true);
246 246
 
247 247
 	foreach ($tmp_version_info['file_versions_subs'] as $key => $val)
Please login to merge, or discard this patch.
sources/ElkArte/Errors/Log.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		// Deleting all with a filter?
42 42
 		elseif ($type === 'delall' && !empty($filter))
43 43
 		{
44
-			$this->_db->query('','
44
+			$this->_db->query('', '
45 45
 				DELETE FROM {db_prefix}log_errors
46 46
 				WHERE ' . $filter['variable'] . ' LIKE {string:filter}',
47 47
 				array(
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		// Just specific errors?
53 53
 		elseif ($type === 'delete')
54 54
 		{
55
-			$this->_db->query('','
55
+			$this->_db->query('', '
56 56
 				DELETE FROM {db_prefix}log_errors
57 57
 				WHERE id_error IN ({array_int:error_list})',
58 58
 				array(
Please login to merge, or discard this patch.
sources/subs/Bans.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1592,7 +1592,7 @@
 block discarded – undo
1592 1592
 			'empty' => '',
1593 1593
 		]
1594 1594
 	);
1595
-	$message_ips = $request->fetch_callback(function($row) {
1595
+	$message_ips = $request->fetch_callback(function ($row) {
1596 1596
 		return $row['poster_ip'];
1597 1597
 	});
1598 1598
 	$request->free_result();
Please login to merge, or discard this patch.
sources/ElkArte/Errors/Errors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -536,7 +536,7 @@
 block discarded – undo
536 536
 			User::load(true);
537 537
 
538 538
 			$_SESSION['session_var'] = isset($_SESSION['session_var']) ? $_SESSION['session_var'] : '';
539
-			$_SESSION['session_value'] = isset($_SESSION['session_value'] ) ? $_SESSION['session_value'] : '';
539
+			$_SESSION['session_value'] = isset($_SESSION['session_value']) ? $_SESSION['session_value'] : '';
540 540
 			new ThemeLoader();
541 541
 
542 542
 			// Here lies elkarte, dead from a program error. Just a cryptic message, no output could be better.
Please login to merge, or discard this patch.
sources/ElkArte/Controller/PersonalMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1892,7 +1892,7 @@
 block discarded – undo
1892 1892
 		global $txt, $context, $language, $modSettings;
1893 1893
 
1894 1894
 		// Check that this feature is even enabled!
1895
-		if (empty($modSettings['enableReportPM']) || empty($this->_req->getPost('pmsg', 'intval',  $this->_req->getQuery('pmsg', 'intval', 0))))
1895
+		if (empty($modSettings['enableReportPM']) || empty($this->_req->getPost('pmsg', 'intval', $this->_req->getQuery('pmsg', 'intval', 0))))
1896 1896
 		{
1897 1897
 			throw new Exception('no_access', false);
1898 1898
 		}
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Notify.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@
 block discarded – undo
425 425
 		if ($valid)
426 426
 		{
427 427
 			$this->_unsubscribeToggle($member, $area, $extra);
428
-			$this->_prepareTemplateMessage( $area, $extra, $member['email_address']);
428
+			$this->_prepareTemplateMessage($area, $extra, $member['email_address']);
429 429
 
430 430
 			return true;
431 431
 		}
Please login to merge, or discard this patch.
sources/subs/Topic.subs.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2314,7 +2314,7 @@
 block discarded – undo
2314 2314
 				id_msg 
2315 2315
 			FROM {db_prefix}messages
2316 2316
 			WHERE id_topic = {int:current_topic}' . ($postMod ? '' : '
2317
-			AND (approved = {int:is_approved}' . (User::$info->is_guest ? '' : ' OR id_member = {int:current_member}') .')') . '
2317
+			AND (approved = {int:is_approved}' . (User::$info->is_guest ? '' : ' OR id_member = {int:current_member}') . ')') . '
2318 2318
 			ORDER BY id_msg ' . ($sort ? '' : 'DESC') . ($limit['messages_per_page'] == -1 ? '' : '
2319 2319
 			LIMIT ' . $limit['start'] . ', ' . $limit['offset']) . '
2320 2320
 		) AS o 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2304,7 +2304,7 @@
 block discarded – undo
2304 2304
 	);
2305 2305
 
2306 2306
 	// When evaluating potentially huge offsets, grab the ids only, first.
2307
-    // The performance impact is still significant going from three columns to one.
2307
+	// The performance impact is still significant going from three columns to one.
2308 2308
 	$postMod = $modSettings['postmod_active'] && allowedTo('approve_posts');
2309 2309
 	$request = $db->fetchQuery('
2310 2310
 		SELECT 
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Register.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1015,7 +1015,7 @@
 block discarded – undo
1015 1015
 
1016 1016
 			// Ummm... don't take someone else's email during the change
1017 1017
 			// @todo Separate the sprintf?
1018
-			if  (userByEmail($this->_req->post->new_email) === false)
1018
+			if (userByEmail($this->_req->post->new_email) === false)
1019 1019
 			{
1020 1020
 				throw new Exception('email_in_use', false, array(htmlspecialchars($this->_req->post->new_email, ENT_COMPAT, 'UTF-8')));
1021 1021
 			}
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
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
 	// First section is for adding/removing words from the censored list.
297 297
 	echo '
298 298
 	<div id="admincenter" class="admincenter">
299
-		<form id="admin_form_wrapper" action="', getUrl('action', ['action'=>'admin','area'=>'postsettings','sa'=>'censor']), '" method="post" accept-charset="UTF-8">
299
+		<form id="admin_form_wrapper" action="', getUrl('action', ['action'=>'admin', 'area'=>'postsettings', 'sa'=>'censor']), '" method="post" accept-charset="UTF-8">
300 300
 			<h2 class="category_header">
301 301
 				', $txt['admin_censored_words'], '
302 302
 			</h2>
Please login to merge, or discard this patch.