@@ -50,7 +50,7 @@ |
||
| 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... |
@@ -1237,7 +1237,7 @@ |
||
| 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; |
@@ -696,7 +696,7 @@ |
||
| 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; |
@@ -79,8 +79,7 @@ |
||
| 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 | { |
@@ -1330,7 +1330,7 @@ |
||
| 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; |
@@ -167,7 +167,7 @@ |
||
| 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; |
@@ -284,7 +284,7 @@ |
||
| 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 |
@@ -41,7 +41,7 @@ discard block |
||
| 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 |
||
| 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( |
@@ -1592,7 +1592,7 @@ |
||
| 1592 | 1592 | 'empty' => '', |
| 1593 | 1593 | ] |
| 1594 | 1594 | ); |
| 1595 | - $message_ips = $request->fetch_callback(function($row) { |
|
| 1595 | + $message_ips = $request->fetch_callback(function ($row) { |
|
| 1596 | 1596 | return $row['poster_ip']; |
| 1597 | 1597 | }); |
| 1598 | 1598 | $request->free_result(); |