Passed
Pull Request — development (#3792)
by Spuds
06:41
created
sources/subs/Members.subs.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 			'admin_group' => 1,
108 108
 		)
109 109
 	)->fetch_callback(
110
-		function ($row) use (&$admins, &$emails, &$user_log_details) {
110
+		function($row) use (&$admins, &$emails, &$user_log_details) {
111 111
 			if ($row['is_admin'])
112 112
 			{
113 113
 				$admins[] = $row['id_member'];
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 			'buddy_list' => implode(', buddy_list) != 0 OR FIND_IN_SET(', $users),
463 463
 		)
464 464
 	)->fetch_callback(
465
-		function ($row) use ($users) {
465
+		function($row) use ($users) {
466 466
 			updateMemberData($row['id_member'], array(
467 467
 				'pm_ignore_list' => implode(',', array_diff(explode(',', $row['pm_ignore_list']), $users)),
468 468
 				'buddy_list' => implode(',', array_diff(explode(',', $row['buddy_list']), $users))
@@ -1057,7 +1057,7 @@  discard block
 block discarded – undo
1057 1057
 				'permission' => $permission,
1058 1058
 			]
1059 1059
 		)->fetch_callback(
1060
-			function ($row) use (&$member_groups) {
1060
+			function($row) use (&$member_groups) {
1061 1061
 				$member_groups[$row['add_deny'] === '1' ? 'allowed' : 'denied'][] = (int) $row['id_group'];
1062 1062
 			}
1063 1063
 		);
@@ -1097,7 +1097,7 @@  discard block
 block discarded – undo
1097 1097
 				'permission' => $permission,
1098 1098
 			)
1099 1099
 		)->fetch_callback(
1100
-			function ($row) use (&$member_groups) {
1100
+			function($row) use (&$member_groups) {
1101 1101
 				$member_groups[$row['add_deny'] === '1' ? 'allowed' : 'denied'][] = (int) $row['id_group'];
1102 1102
 			}
1103 1103
 		);
@@ -1149,7 +1149,7 @@  discard block
 block discarded – undo
1149 1149
 			'member_group_denied_implode' => implode(', mem.additional_groups) != 0 OR FIND_IN_SET(', $member_groups['denied']),
1150 1150
 		)
1151 1151
 	)->fetch_callback(
1152
-		function ($row) {
1152
+		function($row) {
1153 1153
 			return $row['id_member'];
1154 1154
 		}
1155 1155
 	);
@@ -1415,7 +1415,7 @@  discard block
 block discarded – undo
1415 1415
 			'ips' => $ips,
1416 1416
 		)
1417 1417
 	)->fetch_callback(
1418
-		function ($row) use (&$had_ips, &$duplicate_members) {
1418
+		function($row) use (&$had_ips, &$duplicate_members) {
1419 1419
 			// Don't collect lots of the same.
1420 1420
 			if (isset($had_ips[$row['poster_ip']]) && in_array($row['id_member'], $had_ips[$row['poster_ip']]))
1421 1421
 			{
@@ -1596,7 +1596,7 @@  discard block
 block discarded – undo
1596 1596
 		LIMIT {int:start}, {int:limit}' : ''),
1597 1597
 		$query_params
1598 1598
 	)->fetch_callback(
1599
-		function ($row) use (&$members, $details) {
1599
+		function($row) use (&$members, $details) {
1600 1600
 			// Return all the details for each member found
1601 1601
 			if ($details)
1602 1602
 			{
@@ -1665,7 +1665,7 @@  discard block
 block discarded – undo
1665 1665
 {
1666 1666
 	$allowed_conditions = array(
1667 1667
 		'member_ids' => 'id_member IN ({array_int:member_ids})',
1668
-		'member_names' => function (&$members) {
1668
+		'member_names' => function(&$members) {
1669 1669
 			$mem_query = array();
1670 1670
 
1671 1671
 			foreach ($members['member_names'] as $key => $param)
@@ -1778,7 +1778,7 @@  discard block
 block discarded – undo
1778 1778
 			'specific_admin' => isset($id_admin) ? (int) $id_admin : 0,
1779 1779
 		)
1780 1780
 	)->fetch_callback(
1781
-		function ($row) use (&$admins) {
1781
+		function($row) use (&$admins) {
1782 1782
 			$admins[$row['id_member']] = array($row['real_name'], $row['lngfile']);
1783 1783
 		}
1784 1784
 	);
@@ -1873,7 +1873,7 @@  discard block
 block discarded – undo
1873 1873
 			'sort' => $options['sort'] ?? '',
1874 1874
 		)
1875 1875
 	)->fetch_callback(
1876
-		function ($row) use (&$members, $language, $single, $options) {
1876
+		function($row) use (&$members, $language, $single, $options) {
1877 1877
 			$row['id_member'] = (int) $row['id_member'];
1878 1878
 			$row['posts'] = (int) $row['posts'];
1879 1879
 			$row['id_theme'] = (int) $row['id_theme'];
@@ -1929,7 +1929,7 @@  discard block
 block discarded – undo
1929 1929
 			'is_activated' => 1,
1930 1930
 		)
1931 1931
 	)->fetch_callback(
1932
-		function ($row) use (&$inactive_members) {
1932
+		function($row) use (&$inactive_members) {
1933 1933
 			$inactive_members[(int) $row['is_activated']] = (int) $row['total_members'];
1934 1934
 		}
1935 1935
 	);
@@ -2011,7 +2011,7 @@  discard block
 block discarded – undo
2011 2011
 			'limit' => Util::strlen($search) <= 2 ? 100 : 200,
2012 2012
 		)
2013 2013
 	)->fetch_callback(
2014
-		function ($row) {
2014
+		function($row) {
2015 2015
 			$row['real_name'] = strtr($row['real_name'], array('&amp;' => '&#038;', '&lt;' => '&#060;', '&gt;' => '&#062;', '&quot;' => '&#034;'));
2016 2016
 
2017 2017
 			return array(
@@ -2101,7 +2101,7 @@  discard block
 block discarded – undo
2101 2101
 		ORDER BY {raw:order_by}' . $limit,
2102 2102
 		$conditions
2103 2103
 	)->fetch_callback(
2104
-		function ($row) use (&$data) {
2104
+		function($row) use (&$data) {
2105 2105
 			global $modSettings, $language;
2106 2106
 
2107 2107
 			$data['members'][] = (int) $row['id_member'];
@@ -2407,7 +2407,7 @@  discard block
 block discarded – undo
2407 2407
 			'request_list' => $groups,
2408 2408
 		)
2409 2409
 	)->fetch_callback(
2410
-		function ($row) use (&$email_details, &$group_changes, $change_groups) {
2410
+		function($row) use (&$email_details, &$group_changes, $change_groups) {
2411 2411
 			global $modSettings, $language;
2412 2412
 
2413 2413
 			$row['lngfile'] = empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile'];
@@ -2751,7 +2751,7 @@  discard block
 block discarded – undo
2751 2751
 					WHERE ' . $condition,
2752 2752
 					$parameters
2753 2753
 				)->fetch_callback(
2754
-					function ($row) {
2754
+					function($row) {
2755 2755
 						return $row['member_name'];
2756 2756
 					}
2757 2757
 				);
@@ -2865,7 +2865,7 @@  discard block
 block discarded – undo
2865 2865
 			'ip_address' => $ip_var,
2866 2866
 		)
2867 2867
 	)->fetch_callback(
2868
-		function ($row) use (&$ips) {
2868
+		function($row) use (&$ips) {
2869 2869
 			$ips[$row['member_ip']][] = '<a href="' . getUrl('profile', ['action' => 'profile', 'u' => $row['id_member'], 'name' => $row['display_name']]) . '">' . $row['display_name'] . '</a>';
2870 2870
 		}
2871 2871
 	);
Please login to merge, or discard this patch.
sources/ElkArte/MessagesDelete.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 				'messages' => $msgs,
98 98
 			)
99 99
 		)->fetch_callback(
100
-			function ($row) use (&$actioned_messages, &$previous_topics) {
100
+			function($row) use (&$actioned_messages, &$previous_topics) {
101 101
 				// Restoring the first post means topic.
102 102
 				if ((int) $row['id_msg'] === (int) $row['id_first_msg'] && (int) $row['id_previous_topic'] === (int) $row['id_topic'])
103 103
 				{
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 					'previous_topics' => $previous_topics,
159 159
 				)
160 160
 			)->fetch_callback(
161
-				static function ($row) use (&$previous_topics) {
161
+				static function($row) use (&$previous_topics) {
162 162
 					$previous_topics[$row['id_topic']] = array(
163 163
 						'board' => $row['id_board'],
164 164
 						'subject' => $row['subject'],
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 					'is_approved' => 1,
279 279
 				)
280 280
 			)->fetch_callback(
281
-				static function ($row) {
281
+				static function($row) {
282 282
 					updateMemberData($row['id_member'], array('posts' => '+'));
283 283
 				}
284 284
 			);
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 				'target_topic' => $target_topic,
319 319
 			)
320 320
 		)->fetch_callback(
321
-			static function ($row) use (&$target_topic_data) {
321
+			static function($row) use (&$target_topic_data) {
322 322
 				if ($row['id_first_msg'] < $target_topic_data['id_first_msg'])
323 323
 				{
324 324
 					$target_topic_data['id_first_msg'] = $row['id_first_msg'];
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 					'from_topic' => $from_topic,
388 388
 				)
389 389
 			)->fetch_callback(
390
-				static function ($row) use (&$source_topic_data) {
390
+				static function($row) use (&$source_topic_data) {
391 391
 					if ($row['id_first_msg'] < $source_topic_data['id_first_msg'])
392 392
 					{
393 393
 						$source_topic_data['id_first_msg'] = $row['id_first_msg'];
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
 					'first_messages' => $cache_updates,
462 462
 				)
463 463
 			)->fetch_callback(
464
-				static function ($row) {
464
+				static function($row) {
465 465
 					updateSubjectStats($row['id_topic'], $row['subject']);
466 466
 				}
467 467
 			);
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 						'is_approved' => 1,
556 556
 					)
557 557
 				)->fetch_callback(
558
-					static function ($member) {
558
+					static function($member) {
559 559
 						updateMemberData($member['id_member'], array('posts' => 'posts + ' . $member['post_count']));
560 560
 					}
561 561
 				);
@@ -977,7 +977,7 @@  discard block
 block discarded – undo
977 977
 		updateMessageStats();
978 978
 		require_once(SUBSDIR . '/Topic.subs.php');
979 979
 		updateTopicStats();
980
-		updateSettings(['calendar_updated' => time(),]);
980
+		updateSettings(['calendar_updated' => time(), ]);
981 981
 
982 982
 		// And now to update the last message of each board we messed with.
983 983
 		require_once(SUBSDIR . '/Post.subs.php');
@@ -1041,7 +1041,7 @@  discard block
 block discarded – undo
1041 1041
 				'mention_types' => $mentionTypes,
1042 1042
 			]
1043 1043
 		)->fetch_callback(
1044
-			function ($row) use (&$changeMe) {
1044
+			function($row) use (&$changeMe) {
1045 1045
 				$changeMe[] = (int) $row['id_member'];
1046 1046
 			}
1047 1047
 		);
Please login to merge, or discard this patch.
sources/ElkArte/Notifications/PostNotifications.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -640,7 +640,7 @@
 block discarded – undo
640 640
 		$this->sendSiteBoardNotifications($topicData, $board_index, $boards);
641 641
 
642 642
 		// Now the ones who want it via Email
643
-		$this->sendEmailBoardNotifications($topicData,$board_index, $boards);
643
+		$this->sendEmailBoardNotifications($topicData, $board_index, $boards);
644 644
 
645 645
 		$lang_loader = new Loader(null, $txt, database());
646 646
 		$lang_loader->load('index', false);
Please login to merge, or discard this patch.
sources/subs/Mentions.subs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 			'is_accessible' => 1,
56 56
 			'all_type' => empty($allTypes) ? [$type] : $allTypes,
57 57
 		]
58
-	)->fetch_callback(function ($row) use (&$counts, $id_member) {
58
+	)->fetch_callback(function($row) use (&$counts, $id_member) {
59 59
 		$counts[$id_member][$row['mention_type']] = (int) $row['cnt'];
60 60
 		$counts[$id_member]['total'] += $row['cnt'];
61 61
 	});
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 			'sort' => $sort,
119 119
 		)
120 120
 	)->fetch_callback(
121
-		function ($row) {
121
+		function($row) {
122 122
 			$row['avatar'] = determineAvatar($row);
123 123
 
124 124
 			return $row;
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 			'messages' => $msgs,
194 194
 		)
195 195
 	)->fetch_callback(
196
-		function ($row) use ($status) {
196
+		function($row) use ($status) {
197 197
 			updateMentionMenuCount($status, $row['id_member']);
198 198
 		}
199 199
 	);
Please login to merge, or discard this patch.
sources/subs/Poll.subs.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 			'not_guest' => 0,
314 314
 		)
315 315
 	)->fetch_callback(
316
-		function ($row) use (&$pollOptions) {
316
+		function($row) use (&$pollOptions) {
317 317
 			$row['label'] = censor($row['label']);
318 318
 			$pollOptions[$row['id_choice']] = $row;
319 319
 		}
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 			'id_poll' => $id_poll,
345 345
 		)
346 346
 	)->fetch_callback(
347
-		function ($row) use (&$pollOptions) {
347
+		function($row) use (&$pollOptions) {
348 348
 			$row['label'] = censor($row['label']);
349 349
 			$pollOptions[$row['id_choice']] = $row;
350 350
 		}
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
 			'id_poll' => $id_poll,
728 728
 		)
729 729
 	)->fetch_callback(
730
-		function ($row) use (&$pollOptions) {
730
+		function($row) use (&$pollOptions) {
731 731
 			if (isset($row['id_choice']))
732 732
 			{
733 733
 				$pollOptions[] = $row['id_choice'];
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
 			'id_poll' => $id_poll,
796 796
 		)
797 797
 	)->fetch_callback(
798
-		function ($row) use (&$choices, &$number) {
798
+		function($row) use (&$choices, &$number) {
799 799
 			$row['label'] = censor($row['label']);
800 800
 			$choices[$row['id_choice']] = array(
801 801
 				'id' => $row['id_choice'],
Please login to merge, or discard this patch.
sources/ElkArte/MetadataIntegrate.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -487,7 +487,7 @@
 block discarded – undo
487 487
 			return $total;
488 488
 		}
489 489
 
490
-		foreach($context['likes'] as $item) {
490
+		foreach ($context['likes'] as $item) {
491 491
 			$total += $item['count'];
492 492
 		}
493 493
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -487,7 +487,8 @@
 block discarded – undo
487 487
 			return $total;
488 488
 		}
489 489
 
490
-		foreach($context['likes'] as $item) {
490
+		foreach($context['likes'] as $item)
491
+		{
491 492
 			$total += $item['count'];
492 493
 		}
493 494
 
Please login to merge, or discard this patch.
themes/default/css/_gold/index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,6 +2,9 @@
 block discarded – undo
2 2
 
3 3
 // Try to handle it with the upper level index.php. (it should know what to do.)
4 4
 if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
5
+{
5 6
 	include (dirname(dirname(__FILE__)) . '/index.php');
6
-else
7
-	exit;
8 7
\ No newline at end of file
8
+}
9
+else {
10
+	exit;
11
+}
Please login to merge, or discard this patch.
themes/default/css/_blue/index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,6 +2,9 @@
 block discarded – undo
2 2
 
3 3
 // Try to handle it with the upper level index.php. (it should know what to do.)
4 4
 if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
5
+{
5 6
 	include (dirname(dirname(__FILE__)) . '/index.php');
6
-else
7
-	exit;
8 7
\ No newline at end of file
8
+}
9
+else {
10
+	exit;
11
+}
Please login to merge, or discard this patch.