Passed
Pull Request — development (#3540)
by Emanuele
07:52
created
sources/ElkArte/ScheduledTasks/Tasks/DailyMaintenance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 		Cache::instance()->clean('data');
51 51
 
52 52
 		// If warning decrement is enabled and we have people who have not had a new warning in 24 hours, lower their warning level.
53
-		list (, , $modSettings['warning_decrement']) = explode(',', $modSettings['warning_settings']);
53
+		list (,, $modSettings['warning_decrement']) = explode(',', $modSettings['warning_settings']);
54 54
 		if ($modSettings['warning_decrement'])
55 55
 		{
56 56
 			// Find every member who has a warning level...
Please login to merge, or discard this patch.
sources/ElkArte/Controller/ProfileOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1237,7 +1237,7 @@
 block discarded – undo
1237 1237
 					// Check whether they are interested.
1238 1238
 					if (!empty($member['mod_prefs']))
1239 1239
 					{
1240
-						list (, , $pref_binary) = explode('|', $member['mod_prefs']);
1240
+						list (,, $pref_binary) = explode('|', $member['mod_prefs']);
1241 1241
 						if (!($pref_binary & 4))
1242 1242
 						{
1243 1243
 							continue;
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Emailuser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -696,7 +696,7 @@
 block discarded – undo
696 696
 			// Maybe they don't want to know?!
697 697
 			if (!empty($row['mod_prefs']))
698 698
 			{
699
-				list (, , $pref_binary) = explode('|', $row['mod_prefs']);
699
+				list (,, $pref_binary) = explode('|', $row['mod_prefs']);
700 700
 				if (!($pref_binary & 1) && (!($pref_binary & 2) || !in_array($row['id_member'], $real_mods)))
701 701
 				{
702 702
 					continue;
Please login to merge, or discard this patch.
sources/subs/Sound.subs.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
 		$sound_letter = substr($sound_letter, strpos($sound_letter, 'data') + 8);
80 80
 		switch ($word[$i] === 's' ? 0 : mt_rand(0, 2))
81 81
 		{
82
-			case 0:
83
-				for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++)
82
+			case 0 : for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++)
84 83
 				{
85 84
 					for ($k = 0, $m = round(mt_rand(15, 25) / 10); $k < $m; $k++)
86 85
 					{
Please login to merge, or discard this patch.
sources/subs/Attachments.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1330,7 +1330,7 @@
 block discarded – undo
1330 1330
 	if ($have_unapproved)
1331 1331
 	{
1332 1332
 		// Unapproved attachments go first.
1333
-		usort($attachmentData, function($a, $b) {
1333
+		usort($attachmentData, function ($a, $b) {
1334 1334
 			if ($a['is_approved'] === $b['is_approved'])
1335 1335
 			{
1336 1336
 				return 0;
Please login to merge, or discard this patch.
sources/ElkArte/ScheduledTasks/Tasks/ApprovalNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
 				// Check whether they are interested.
168 168
 				if (!empty($row['mod_prefs']))
169 169
 				{
170
-					list (, , $pref_binary) = explode('|', $row['mod_prefs']);
170
+					list (,, $pref_binary) = explode('|', $row['mod_prefs']);
171 171
 					if (!($pref_binary & 4))
172 172
 					{
173 173
 						return;
Please login to merge, or discard this patch.
sources/ElkArte/TopicsMerge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
 
285 285
 		if (count($this->_polls) > 1)
286 286
 		{
287
-			$this->_db->fetchQuery( '
287
+			$this->_db->fetchQuery('
288 288
 				SELECT
289 289
 					t.id_topic, t.id_poll, m.subject, p.question
290 290
 				FROM {db_prefix}polls AS p
Please login to merge, or discard this patch.
sources/subs/Admin.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
 		'file_versions_subs' => SUBSDIR,
242 242
 		'file_versions_modules' => SOURCEDIR . '/modules',
243 243
 	);
244
-	$tmp_version_info = array_combine(array_keys($directories),array_fill(0,count($directories),array()));
244
+	$tmp_version_info = array_combine(array_keys($directories), array_fill(0, count($directories), array()));
245 245
 	readFileVersions($tmp_version_info, $directories, '.php', true);
246 246
 
247 247
 	foreach ($tmp_version_info['file_versions_subs'] as $key => $val)
Please login to merge, or discard this patch.
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.