Passed
Branch development (176841)
by Elk
07:05
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/Profile.subs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2662,11 +2662,11 @@
 block discarded – undo
2662 2662
 		$row['subject'] = censor($row['subject']);
2663 2663
 		if (!$row['approved'])
2664 2664
 		{
2665
-			$row['filename'] = str_replace(array('{attachment_link}', '{txt_awaiting}'), array('<a href="' . getUrl('attach', ['action' => 'dlattach', 'attach' => $row['id_attach'], 'name' => $row['filename'], 'topic' => $row['id_topic'], 'subject' => $row['subject'] ]) . '">' . $row['filename'] . '</a>', $txt['awaiting_approval']), $settings['attachments_awaiting_approval']);
2665
+			$row['filename'] = str_replace(array('{attachment_link}', '{txt_awaiting}'), array('<a href="' . getUrl('attach', ['action' => 'dlattach', 'attach' => $row['id_attach'], 'name' => $row['filename'], 'topic' => $row['id_topic'], 'subject' => $row['subject']]) . '">' . $row['filename'] . '</a>', $txt['awaiting_approval']), $settings['attachments_awaiting_approval']);
2666 2666
 		}
2667 2667
 		else
2668 2668
 		{
2669
-			$row['filename'] = '<a href="' . getUrl('attach', ['action' => 'dlattach', 'attach' => $row['id_attach'], 'name' => $row['filename'], 'topic' => $row['id_topic'], 'subject' => $row['subject']])  . '">' . $row['filename'] . '</a>';
2669
+			$row['filename'] = '<a href="' . getUrl('attach', ['action' => 'dlattach', 'attach' => $row['id_attach'], 'name' => $row['filename'], 'topic' => $row['id_topic'], 'subject' => $row['subject']]) . '">' . $row['filename'] . '</a>';
2670 2670
 		}
2671 2671
 
2672 2672
 		$attachments[] = array(
Please login to merge, or discard this patch.
sources/subs/Calendar.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -614,7 +614,7 @@
 block discarded – undo
614 614
 
615 615
 	// Set the previous and the next week's links.
616 616
 	$calendarGrid['previous_week']['href'] = getUrl('action', ['action' => 'calendar', 'viewweek', 'year' => $calendarGrid['previous_week']['year'], 'month' => $calendarGrid['previous_week']['month'], 'day' => $calendarGrid['previous_week']['day']]);
617
-	$calendarGrid['next_week']['href'] = getUrl('action', ['action' => 'calendar', 'viewweek' ,'year' => $calendarGrid['next_week']['year'], 'month' => $calendarGrid['next_week']['month'], 'day' => $calendarGrid['next_week']['day']]);
617
+	$calendarGrid['next_week']['href'] = getUrl('action', ['action' => 'calendar', 'viewweek', 'year' => $calendarGrid['next_week']['year'], 'month' => $calendarGrid['next_week']['month'], 'day' => $calendarGrid['next_week']['day']]);
618 618
 
619 619
 	return $calendarGrid;
620 620
 }
Please login to merge, or discard this patch.
sources/ElkArte/Themes/Templates.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -619,9 +619,9 @@
 block discarded – undo
619 619
 	): Generator
620 620
 	{
621 621
 		foreach (preg_split(
622
-			         '~\<br( /)?\>~',
623
-			         highlight_file($file, true)
624
-		         ) as $line => $content)
622
+					 '~\<br( /)?\>~',
623
+					 highlight_file($file, true)
624
+				 ) as $line => $content)
625 625
 		{
626 626
 			if ($line >= $min && $line <= $max)
627 627
 			{
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -491,7 +491,8 @@  discard block
 block discarded – undo
491 491
 			{
492 492
 				require($filename);
493 493
 			}
494
-		} catch (Error $e)
494
+		}
495
+		catch (Error $e)
495 496
 		{
496 497
 			$this->templateNotFound($e);
497 498
 		}
@@ -709,7 +710,8 @@  discard block
 block discarded – undo
709 710
 				try
710 711
 				{
711 712
 					$theme_function();
712
-				} catch (Error $e)
713
+				}
714
+				catch (Error $e)
713 715
 				{
714 716
 					$this->templateNotFound($e);
715 717
 				}
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Draft.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 	/**
56 56
 	 * @override
57
-		 */
57
+	 */
58 58
 	public function action_post()
59 59
 	{
60 60
 		$this->action_index();
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
 	/**
64 64
 	 * @override
65
-		 */
65
+	 */
66 66
 	public function action_post2()
67 67
 	{
68 68
 		$this->action_index();
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
 	/**
72 72
 	 * @override
73
-		 */
73
+	 */
74 74
 	public function action_save()
75 75
 	{
76 76
 		$this->action_index();
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Mentions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 	protected $_all = false;
85 85
 
86 86
 	/**
87
-		 *
87
+	 *
88 88
 	 * @param \ElkArte\EventManager $eventManager
89 89
 	 */
90 90
 	public function __construct($eventManager)
Please login to merge, or discard this patch.
sources/ElkArte/Database/Mysqli/Dump.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
  * SQL database class, implements database class to control mysql functions
25 25
  */
26 26
 	class Dump extends \ElkArte\Database\AbstractDump
27
-{
27
+	{
28 28
 	/**
29 29
 	 * {@inheritDoc}
30 30
 	 */
Please login to merge, or discard this patch.
sources/ElkArte/MessageTopicIcons.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
 	 * Icons that are default with ElkArte
42 42
 	 * @var array
43 43
 	 */
44
-	protected $_stable_icons = 	array();
44
+	protected $_stable_icons = array();
45 45
 
46 46
 	/**
47 47
 	 * Icons to load in addition to the default
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		$this->_loadStableIcons();
72 72
 
73 73
 		// Merge in additional ones
74
-		$custom_icons = array_map(function($element) {
74
+		$custom_icons = array_map(function ($element) {
75 75
 			return $element['first_icon'];
76 76
 		}, $custom);
77 77
 		$this->_stable_icons = array_merge($this->_stable_icons, $custom_icons);
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/ManageErrors.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 					$id = $filter['value']['sql'];
176 176
 					\ElkArte\MembersList::load($id, false, 'minimal');
177 177
 					$name = \ElkArte\MembersList::get($id)->real_name;
178
-					$context['filter']['value']['html'] = '<a href="' . getUrl('profile', ['action' => 'profile', 'u' => $id,  'name' => $name]) . '">' . $name . '</a>';
178
+					$context['filter']['value']['html'] = '<a href="' . getUrl('profile', ['action' => 'profile', 'u' => $id, 'name' => $name]) . '">' . $name . '</a>';
179 179
 					break;
180 180
 				case 'url':
181 181
 					$context['filter']['value']['html'] = '\'' . strtr(htmlspecialchars((substr($filter['value']['sql'], 0, 1) == '?' ? $scripturl : '') . $filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array('\_' => '_')) . '\'';
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 				$memID = $context['errors'][$id]['member']['id'];
215 215
 				$context['errors'][$id]['member']['username'] = $members[$memID]['member_name'];
216 216
 				$context['errors'][$id]['member']['name'] = $members[$memID]['real_name'];
217
-				$context['errors'][$id]['member']['href'] = empty($memID) ? '' : getUrl('profile', ['action' => 'profile', 'u' => $memID,  'name' => $members[$memID]['real_name']]);
217
+				$context['errors'][$id]['member']['href'] = empty($memID) ? '' : getUrl('profile', ['action' => 'profile', 'u' => $memID, 'name' => $members[$memID]['real_name']]);
218 218
 				$context['errors'][$id]['member']['link'] = empty($memID) ? $txt['guest_title'] : '<a href="' . $context['errors'][$id]['member']['href'] . '">' . $context['errors'][$id]['member']['name'] . '</a>';
219 219
 			}
220 220
 		}
Please login to merge, or discard this patch.