Passed
Pull Request — development (#3766)
by Elk
06:51
created
sources/ElkArte/Packages/PackageServers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@
 block discarded – undo
392 392
 		{
393 393
 			// Name this master.zip based on repo name in the link
394 394
 			$path_parts = pathinfo($matches[4]);
395
-			[, $newname,] = explode('/', $path_parts['dirname']);
395
+			[, $newname, ] = explode('/', $path_parts['dirname']);
396 396
 
397 397
 			// Just to be safe, no invalid file characters
398 398
 			$invalid = array_merge(array_map('chr', range(0, 31)), ['<', '>', ':', '"', '/', '\\', '|', '?', '*']);
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/ApprovalNotification.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 				INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board)',
56 56
 			array()
57 57
 		)->fetch_callback(
58
-			static function ($row) use (&$notices, &$profiles) {
58
+			static function($row) use (&$notices, &$profiles) {
59 59
 				// If this is no longer around we'll ignore it.
60 60
 				if (empty($row['id_topic']))
61 61
 				{
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 				'approve_posts' => 'approve_posts',
112 112
 			)
113 113
 		)->fetch_callback(
114
-			static function ($row) use (&$addGroups, &$perms) {
114
+			static function($row) use (&$addGroups, &$perms) {
115 115
 				// Sorry guys, but we have to ignore guests AND members - it would be too many otherwise.
116 116
 				if ($row['id_group'] < 2)
117 117
 				{
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
 				'additional_group_list_implode' => implode(', additional_groups) != 0 OR FIND_IN_SET(', $addGroups),
163 163
 			)
164 164
 		)->fetch_callback(
165
-			static function ($row) use (&$members) {
165
+			static function($row) use (&$members) {
166 166
 				// Check whether they are interested.
167 167
 				if (!empty($row['mod_prefs']))
168 168
 				{
169
-					[, , $pref_binary] = explode('|', $row['mod_prefs']);
169
+					[,, $pref_binary] = explode('|', $row['mod_prefs']);
170 170
 					if (!($pref_binary & 4))
171 171
 					{
172 172
 						return;
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/PaidSubscriptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 				'time_now' => time(),
51 51
 			)
52 52
 		)->fetch_callback(
53
-			static function ($row) {
53
+			static function($row) {
54 54
 				removeSubscription($row['id_subscribe'], $row['id_member']);
55 55
 			}
56 56
 		);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 				'time_now' => time(),
77 77
 			)
78 78
 		)->fetch_callback(
79
-			static function ($row) use (&$subs_reminded, $modSettings, $language) {
79
+			static function($row) use (&$subs_reminded, $modSettings, $language) {
80 80
 				$subs_reminded[] = $row['id_sublog'];
81 81
 				$replacements = array(
82 82
 					'PROFILE_LINK' => getUrl('profile', ['action' => 'profile', 'area' => 'subscriptions', 'name' => $row['member_name'], 'u' => $row['id_member']]),
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/WeeklyMaintenance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
 						'closed' => 1,
137 137
 					)
138 138
 				)->fetch_callback(
139
-					static function ($row) use (&$reports) {
139
+					static function($row) use (&$reports) {
140 140
 						if (isset($row[0]))
141 141
 						{
142 142
 							$reports[] = $row[0];
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/DailyMaintenance.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 		Cache::instance()->clean('data');
48 48
 
49 49
 		// If warning decrement is enabled and we have people who have not had a new warning in 24 hours, lower their warning level.
50
-		[, , $modSettings['warning_decrement']] = explode(',', $modSettings['warning_settings']);
50
+		[,, $modSettings['warning_decrement']] = explode(',', $modSettings['warning_settings']);
51 51
 		if ($modSettings['warning_decrement'] !== '' && $modSettings['warning_decrement'] !== '0')
52 52
 		{
53 53
 			// Find every member who has a warning level...
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 					'no_warning' => 0,
62 62
 				)
63 63
 			)->fetch_callback(
64
-				static function ($row) use (&$members) {
64
+				static function($row) use (&$members) {
65 65
 					$members[$row['id_member']] = $row['warning'];
66 66
 				}
67 67
 			);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 						'warning' => 'warning',
84 84
 					)
85 85
 				)->fetch_callback(
86
-					static function ($row) use (&$member_changes, $modSettings, $members) {
86
+					static function($row) use (&$member_changes, $modSettings, $members) {
87 87
 						// More than 24 hours ago?
88 88
 						if ($row['last_warning'] <= time() - 86400)
89 89
 						{
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/Birthdayemails.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 				'day' => $day,
69 69
 			)
70 70
 		)->fetch_callback(
71
-			static function ($row) use (&$birthdays) {
71
+			static function($row) use (&$birthdays) {
72 72
 				// Group them by languages.
73 73
 				if (!isset($birthdays[$row['lngfile']]))
74 74
 				{
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/UserAccessMentions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 								'limit' => $limit,
98 98
 							)
99 99
 						)->fetch_callback(
100
-							static function ($row) use (&$remove, &$mentions) {
100
+							static function($row) use (&$remove, &$mentions) {
101 101
 								if (empty($row['id_board']))
102 102
 								{
103 103
 									$remove[] = $row['id_mention'];
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/RemoveOldFollowups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 				'limit' => 100,
48 48
 			)
49 49
 		)->fetch_callback(
50
-			static function ($row) use (&$remove) {
50
+			static function($row) use (&$remove) {
51 51
 				$remove[] = $row['derived_from'];
52 52
 			}
53 53
 		);
Please login to merge, or discard this patch.
sources/ElkArte/Profile/ProfileAccount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@
 block discarded – undo
450 450
 						'value' => $txt['profile_warning_previous_reason'],
451 451
 					],
452 452
 					'data' => [
453
-						'function' => static function ($warning) {
453
+						'function' => static function($warning) {
454 454
 							global $txt;
455 455
 
456 456
 							$ret = '
Please login to merge, or discard this patch.