Passed
Push — development ( b93807...dda237 )
by Emanuele
01:10 queued 23s
created
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.
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.
sources/Load.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1274,7 +1274,7 @@  discard block
 block discarded – undo
1274 1274
 							'id' => $row['id_moderator'],
1275 1275
 							'name' => $row['real_name'],
1276 1276
 							'href' => getUrl('profile', ['action' => 'profile', 'u' => $row['id_moderator']]),
1277
-							'link' => '<a href="' .getUrl('profile', ['action' => 'profile', 'u' => $row['id_moderator']]) . '">' . $row['real_name'] . '</a>'
1277
+							'link' => '<a href="' . getUrl('profile', ['action' => 'profile', 'u' => $row['id_moderator']]) . '">' . $row['real_name'] . '</a>'
1278 1278
 						);
1279 1279
 					}
1280 1280
 				}
@@ -1656,7 +1656,7 @@  discard block
 block discarded – undo
1656 1656
 
1657 1657
 	if (!empty($context['open_mod_reports']) && (empty(User::$settings['mod_prefs']) || User::$settings['mod_prefs'][0] == 1))
1658 1658
 	{
1659
-		$context['warning_controls']['open_mod_reports'] = '<a href="' . getUrl('action', ['action' => 'moderate', 'area' => 'reports']) .'">' . sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']) . '</a>';
1659
+		$context['warning_controls']['open_mod_reports'] = '<a href="' . getUrl('action', ['action' => 'moderate', 'area' => 'reports']) . '">' . sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']) . '</a>';
1660 1660
 	}
1661 1661
 
1662 1662
 	if (!empty($context['open_pm_reports']) && allowedTo('admin_forum'))
Please login to merge, or discard this patch.
sources/ElkArte/Controller/ProfileInfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
 				'board' => array(
561 561
 					'name' => $row['bname'],
562 562
 					'id' => $row['id_board'],
563
-					'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]) .'">' . $row['bname'] . '</a>',
563
+					'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]) . '">' . $row['bname'] . '</a>',
564 564
 				),
565 565
 				'topic' => array(
566 566
 					'id' => $row['id_topic'],
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 						'function' => function ($rowData) {
759 759
 							if ($rowData['is_image'] && !empty($rowData['id_thumb']))
760 760
 							{
761
-								return '<img src="' . getUrl('action', ['action' => 'dlattach', 'attach' => $rowData['id_thumb'] . ';image']) .'" />';
761
+								return '<img src="' . getUrl('action', ['action' => 'dlattach', 'attach' => $rowData['id_thumb'] . ';image']) . '" />';
762 762
 							}
763 763
 
764 764
 							return '<img src="' . getUrl('action', ['action' => 'dlattach', 'attach' => $rowData['id'] . ';thumb']) . '" />';
@@ -1401,7 +1401,7 @@  discard block
 block discarded – undo
1401 1401
 						'body' => $preview,
1402 1402
 						'board' => array(
1403 1403
 							'name' => $row['bname'],
1404
-							'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]). '">' . $row['bname'] . '</a>'
1404
+							'link' => '<a href="' . getUrl('board', ['board' => $row['id_board'], 'start' => 0, 'name' => $row['bname']]) . '">' . $row['bname'] . '</a>'
1405 1405
 						),
1406 1406
 						'subject' => $row['subject'],
1407 1407
 						'short_subject' => $short_subject,
Please login to merge, or discard this patch.