@@ -1997,7 +1997,7 @@ |
||
| 1997 | 1997 | // Remove anything that isn't actually new from our list of files |
| 1998 | 1998 | foreach ($to_unset as $key => $ids) |
| 1999 | 1999 | { |
| 2000 | - if (array_reduce($ids, function ($carry, $item) { return $carry * $item; }, true) == true) |
|
| 2000 | + if (array_reduce($ids, function($carry, $item) { return $carry * $item; }, true) == true) |
|
| 2001 | 2001 | unset($smiley_files[$key]); |
| 2002 | 2002 | } |
| 2003 | 2003 | |
@@ -982,7 +982,7 @@ |
||
| 982 | 982 | else |
| 983 | 983 | { |
| 984 | 984 | $return = array(); |
| 985 | - while($row = mysqli_fetch_assoc($request)) |
|
| 985 | + while ($row = mysqli_fetch_assoc($request)) |
|
| 986 | 986 | $return[] = $row; |
| 987 | 987 | } |
| 988 | 988 | return !empty($return) ? $return : array(); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | if ($c === $n) { |
| 147 | 147 | $q = $delta; |
| 148 | - for ($k = static::BASE;; $k += static::BASE) { |
|
| 148 | + for ($k = static::BASE; ; $k += static::BASE) { |
|
| 149 | 149 | $t = $this->calculateThreshold($k, $bias); |
| 150 | 150 | if ($q < $t) { |
| 151 | 151 | break; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | $oldi = $i; |
| 228 | 228 | $w = 1; |
| 229 | 229 | |
| 230 | - for ($k = static::BASE;; $k += static::BASE) |
|
| 230 | + for ($k = static::BASE; ; $k += static::BASE) |
|
| 231 | 231 | { |
| 232 | 232 | $digit = static::$decodeTable[$input[$pos++]]; |
| 233 | 233 | $i = $i + ($digit * $w); |
@@ -280,7 +280,7 @@ |
||
| 280 | 280 | $ret .= |
| 281 | 281 | chr(($this->m_arColors[$i] & 0x000000FF)) . // R |
| 282 | 282 | chr(($this->m_arColors[$i] & 0x0000FF00) >> 8) . // G |
| 283 | - chr(($this->m_arColors[$i] & 0x00FF0000) >> 16); // B |
|
| 283 | + chr(($this->m_arColors[$i] & 0x00FF0000) >> 16); // B |
|
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | return $ret; |
@@ -738,7 +738,7 @@ |
||
| 738 | 738 | ); |
| 739 | 739 | else |
| 740 | 740 | $context['allowed_actions'] = array( |
| 741 | - 'ok' => $txt['admin_browse_w_approve'] .' '. $txt['admin_browse_no_email'], |
|
| 741 | + 'ok' => $txt['admin_browse_w_approve'] . ' ' . $txt['admin_browse_no_email'], |
|
| 742 | 742 | 'okemail' => $txt['admin_browse_w_approve'] . ' ' . $txt['admin_browse_w_email'], |
| 743 | 743 | 'require_activation' => $txt['admin_browse_w_approve_require_activate'], |
| 744 | 744 | 'reject' => $txt['admin_browse_w_reject'], |
@@ -93,13 +93,13 @@ discard block |
||
| 93 | 93 | ), |
| 94 | 94 | 'ignore' => array( |
| 95 | 95 | 'label' => $report['ignore'] ? $txt['mc_reportedp_unignore'] : $txt['mc_reportedp_ignore'], |
| 96 | - 'href' => $scripturl.'?action=moderate;area=reported'.$context['report_type'].';sa=handle;ignore='.(int)!$report['ignore'].';rid='.$report['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-ignore_token_var'].'='.$context['mod-report-ignore_token'], |
|
| 96 | + 'href' => $scripturl . '?action=moderate;area=reported' . $context['report_type'] . ';sa=handle;ignore=' . (int) !$report['ignore'] . ';rid=' . $report['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-ignore_token_var'] . '=' . $context['mod-report-ignore_token'], |
|
| 97 | 97 | 'javascript' => !$report['ignore'] ? ' class="you_sure" data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : '', |
| 98 | 98 | 'icon' => 'ignore' |
| 99 | 99 | ), |
| 100 | 100 | 'close' => array( |
| 101 | 101 | 'label' => $context['view_closed'] ? $txt['mc_reportedp_open'] : $txt['mc_reportedp_close'], |
| 102 | - 'href' => $scripturl.'?action=moderate;area=reported'.$context['report_type'].';sa=handle;closed='.(int)!$report['closed'].';rid='.$report['id'].';start='.$context['start'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-closed_token_var'].'='.$context['mod-report-closed_token'], |
|
| 102 | + 'href' => $scripturl . '?action=moderate;area=reported' . $context['report_type'] . ';sa=handle;closed=' . (int) !$report['closed'] . ';rid=' . $report['id'] . ';start=' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-closed_token_var'] . '=' . $context['mod-report-closed_token'], |
|
| 103 | 103 | 'icon' => $context['view_closed'] ? 'folder' : 'close', |
| 104 | 104 | ), |
| 105 | 105 | ); |
@@ -108,17 +108,17 @@ discard block |
||
| 108 | 108 | if ($context['report_type'] == 'posts') |
| 109 | 109 | $context['reports'][$key]['quickbuttons']['delete'] = array( |
| 110 | 110 | 'label' => $txt['mc_reportedp_delete'], |
| 111 | - 'href' => $scripturl.'?action=deletemsg;topic='.$report['topic']['id'].'.0;msg='.$report['topic']['id_msg'].';modcenter;'.$context['session_var'].'='.$context['session_id'], |
|
| 112 | - 'javascript' => 'data-confirm="'.$txt['mc_reportedp_delete_confirm'].'" class="you_sure"', |
|
| 111 | + 'href' => $scripturl . '?action=deletemsg;topic=' . $report['topic']['id'] . '.0;msg=' . $report['topic']['id_msg'] . ';modcenter;' . $context['session_var'] . '=' . $context['session_id'], |
|
| 112 | + 'javascript' => 'data-confirm="' . $txt['mc_reportedp_delete_confirm'] . '" class="you_sure"', |
|
| 113 | 113 | 'icon' => 'delete', |
| 114 | 114 | 'show' => !$report['closed'] && (is_array($context['report_remove_any_boards']) && in_array($report['topic']['id_board'], $context['report_remove_any_boards'])) |
| 115 | 115 | ); |
| 116 | 116 | |
| 117 | 117 | // Ban reported member/post author link |
| 118 | 118 | if ($context['report_type'] == 'members') |
| 119 | - $ban_link = $scripturl.'?action=admin;area=ban;sa=add;u='.$report['user']['id'].';'.$context['session_var'].'='.$context['session_id']; |
|
| 119 | + $ban_link = $scripturl . '?action=admin;area=ban;sa=add;u=' . $report['user']['id'] . ';' . $context['session_var'] . '=' . $context['session_id']; |
|
| 120 | 120 | else |
| 121 | - $ban_link = $scripturl.'?action=admin;area=ban;sa=add'.(!empty($report['author']['id']) ? ';u='.$report['author']['id'] : ';msg='.$report['topic']['id_msg']).';'.$context['session_var'].'='.$context['session_id']; |
|
| 121 | + $ban_link = $scripturl . '?action=admin;area=ban;sa=add' . (!empty($report['author']['id']) ? ';u=' . $report['author']['id'] : ';msg=' . $report['topic']['id_msg']) . ';' . $context['session_var'] . '=' . $context['session_id']; |
|
| 122 | 122 | |
| 123 | 123 | $context['reports'][$key]['quickbuttons'] += array( |
| 124 | 124 | 'ban' => array( |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | 'show' => !$report['closed'] && !empty($context['report_manage_bans']) && ($context['report_type'] == 'posts' || $context['report_type'] == 'members' && !empty($report['user']['id'])) |
| 129 | 129 | ), |
| 130 | 130 | 'quickmod' => array( |
| 131 | - 'content' => '<input type="checkbox" name="close[]" value="'.$report['id'].'">', |
|
| 131 | + 'content' => '<input type="checkbox" name="close[]" value="' . $report['id'] . '">', |
|
| 132 | 132 | 'show' => !$context['view_closed'] |
| 133 | 133 | ) |
| 134 | 134 | ); |
@@ -619,7 +619,7 @@ |
||
| 619 | 619 | if (!empty($modSettings['force_ssl']) && empty($maintenance) && !httpsOn()) |
| 620 | 620 | fatal_lang_error('login_ssl_required', false); |
| 621 | 621 | |
| 622 | - $password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] : ''; |
|
| 622 | + $password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] : ''; |
|
| 623 | 623 | |
| 624 | 624 | // You didn't even enter a password! |
| 625 | 625 | if (trim($password) == '') |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | if ($type == 'edit') |
| 117 | 117 | { |
| 118 | 118 | // Filter out members who have already been notified about this post's topic |
| 119 | - $unnotified = array_filter($watched, function ($member) |
|
| 119 | + $unnotified = array_filter($watched, function($member) |
|
| 120 | 120 | { |
| 121 | 121 | return empty($member['sent']); |
| 122 | 122 | }); |
@@ -1838,7 +1838,7 @@ |
||
| 1838 | 1838 | if (!empty($excluded_groups)) |
| 1839 | 1839 | { |
| 1840 | 1840 | // Make sure this is an array of integers |
| 1841 | - $excluded_groups = array_filter((array) $excluded_groups, function ($v) |
|
| 1841 | + $excluded_groups = array_filter((array) $excluded_groups, function($v) |
|
| 1842 | 1842 | { |
| 1843 | 1843 | return is_int($v) || is_string($v) && (string) intval($v) === $v; |
| 1844 | 1844 | }); |