Passed
Pull Request — patch_1-1-9 (#3690)
by Spuds
06:10
created
sources/subs/Sound.subs.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
 		$sound_letter = substr($sound_letter, strpos($sound_letter, 'data') + 8);
66 66
 		switch ($word[$i] === 's' ? 0 : mt_rand(0, 2))
67 67
 		{
68
-			case 0:
69
-				for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++)
68
+			case 0 : for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++)
70 69
 				for ($k = 0, $m = round(mt_rand(15, 25) / 10); $k < $m; $k++)
71 70
 					$sound_word .= $word[$i] === 's' ? $sound_letter[$j] : chr(mt_rand(max(ord($sound_letter[$j]) - 1, 0x00), min(ord($sound_letter[$j]) + 1, 0xFF)));
72 71
 			break;
Please login to merge, or discard this patch.
sources/subs/BBC/BBCParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1205,7 +1205,7 @@
 block discarded – undo
1205 1205
 		// If we have footnotes, add them in at the end of the message
1206 1206
 		if (!empty($fn_num))
1207 1207
 		{
1208
-			$this->message .=  $this->smiley_marker . '<div class="bbc_footnotes">' . implode('', $this->fn_content) . '</div>' . $this->smiley_marker;
1208
+			$this->message .= $this->smiley_marker . '<div class="bbc_footnotes">' . implode('', $this->fn_content) . '</div>' . $this->smiley_marker;
1209 1209
 		}
1210 1210
 	}
1211 1211
 
Please login to merge, or discard this patch.
sources/subs/MessageIndex.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 			$indexOptions['custom_selects'] = array_merge($indexOptions['custom_selects'], array('ml.body AS last_body', 'mf.body AS first_body'));
87 87
 		// Default: a SUBSTRING
88 88
 		elseif (!empty($indexOptions['previews']))
89
-			$indexOptions['custom_selects'] =  array_merge($indexOptions['custom_selects'], array('SUBSTRING(ml.body, 1, ' . ($indexOptions['previews'] + 256) . ') AS last_body', 'SUBSTRING(mf.body, 1, ' . ($indexOptions['previews'] + 256) . ') AS first_body'));
89
+			$indexOptions['custom_selects'] = array_merge($indexOptions['custom_selects'], array('SUBSTRING(ml.body, 1, ' . ($indexOptions['previews'] + 256) . ') AS last_body', 'SUBSTRING(mf.body, 1, ' . ($indexOptions['previews'] + 256) . ') AS first_body'));
90 90
 
91 91
 		if (!empty($indexOptions['include_avatars']))
92 92
 		{
Please login to merge, or discard this patch.
themes/default/Theme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1144,7 +1144,7 @@
 block discarded – undo
1144 1144
 			// Variant icon definitions?
1145 1145
 			if (file_exists($settings['theme_dir'] . '/css/' . $context['theme_variant'] . '/icons_svg' . $context['theme_variant'] . '.css'))
1146 1146
 			{
1147
-				loadCSSFile($context['theme_variant'] .  '/icons_svg' . $context['theme_variant'] . '.css');
1147
+				loadCSSFile($context['theme_variant'] . '/icons_svg' . $context['theme_variant'] . '.css');
1148 1148
 			}
1149 1149
 
1150 1150
 			// Load a theme variant custom CSS
Please login to merge, or discard this patch.
sources/subs/Who.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -503,7 +503,7 @@
 block discarded – undo
503 503
 			'<a href="http://jqueryui.com/">JQuery UI</a> | &copy; jQuery Foundation and other contributors | Licensed under <a href="http://opensource.org/licenses/MIT">The MIT License (MIT)</a>',
504 504
 			'<a href="https://github.com/tchwork/jsqueeze">Jsqueeze</a> &copy Nicolas Grekas| Licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>',
505 505
 			'<a href="https://github.com/mailcheck">MailCheck</a> | &copy; Received Inc | Licensed under <a href="http://opensource.org/licenses/MIT">The MIT License (MIT)</a>',
506
-			'<a href="https://github.com/michelf/php-markdown">PHP Markdown Lib</a> | &copy; Michel Fortin | Licensed under <a href="https://github.com/michelf/php-markdown/blob/lib/License.md">BSD-style open source</a>',			'<a href="http://www.openwall.com/phpass/">PH Pass</a> | Author: Solar Designer | Placed in the public domain</a>',
506
+			'<a href="https://github.com/michelf/php-markdown">PHP Markdown Lib</a> | &copy; Michel Fortin | Licensed under <a href="https://github.com/michelf/php-markdown/blob/lib/License.md">BSD-style open source</a>', '<a href="http://www.openwall.com/phpass/">PH Pass</a> | Author: Solar Designer | Placed in the public domain</a>',
507 507
 			'<a href="http://www.sceditor.com/">SCEditor</a> | &copy; Sam Clarke | Licensed under <a href="http://opensource.org/licenses/MIT">The MIT License (MIT)</a>',
508 508
 			'<a href="http://sourceforge.net/projects/simplehtmldom/">Simple HTML DOM</a> | Licensed under <a href="http://opensource.org/licenses/MIT">The MIT License (MIT)</a>',
509 509
 			'<a href="http://www.simplemachines.org/">Simple Machines</a> | &copy; Simple Machines | Licensed under <a href="http://www.simplemachines.org/about/smf/license.php">The BSD License</a>',
Please login to merge, or discard this patch.
sources/subs/BoardsList.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
 			if ($row_board['subject'] != '')
370 370
 			{
371 371
 				$this_last_post['href'] = $this->_scripturl . '?topic=' . $row_board['id_topic'] . '.msg' . ($this->_user['is_guest'] ? $row_board['id_msg'] : $row_board['new_from']) . (empty($row_board['is_read']) ? ';boardseen' : '') . '#new';
372
-				$this_last_post['link'] = '<a href="' . $this_last_post['href'] . '" title="' . Util::htmlspecialchars($row_board['subject']). '">' . $row_board['short_subject'] . '</a>';
372
+				$this_last_post['link'] = '<a href="' . $this_last_post['href'] . '" title="' . Util::htmlspecialchars($row_board['subject']) . '">' . $row_board['short_subject'] . '</a>';
373 373
 				/* The board's and children's 'last_post's have:
374 374
 				time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
375 375
 				link, href, subject, start (where they should go for the first unread post.),
Please login to merge, or discard this patch.
sources/controllers/Notify.controller.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/VerificationControls.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	// Need GD for CAPTCHA images
30 30
 	if (in_array('gd', get_loaded_extensions()))
31 31
 	{
32
-		array_unshift($known_verifications,'captcha');
32
+		array_unshift($known_verifications, 'captcha');
33 33
 	}
34 34
 
35 35
 	// Let integration add some more controls
Please login to merge, or discard this patch.
sources/controllers/PersonalMessage.controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1859,7 +1859,7 @@
 block discarded – undo
1859 1859
 		global $txt, $context, $user_info, $language, $modSettings;
1860 1860
 
1861 1861
 		// Check that this feature is even enabled!
1862
-		$pmsg_check = $this->_req->getPost('pmsg', 'intval',  $this->_req->getQuery('pmsg', 'intval', 0));
1862
+		$pmsg_check = $this->_req->getPost('pmsg', 'intval', $this->_req->getQuery('pmsg', 'intval', 0));
1863 1863
 		if (empty($modSettings['enableReportPM']) || empty($pmsg_check))
1864 1864
 		{
1865 1865
 			throw new Elk_Exception('no_access', false);
Please login to merge, or discard this patch.