Showing 6,972 of 6,973 total issues
Consider simplifying this complex logical expression. Open
Open
if ((in_array($key, $columnPref) || ($key === 'options' && isset($val['title'])) || (vartrue($val['forced']))) && !vartrue($val['nolist']))
{
$cl = (vartrue($val['thclass'])) ? " class='".$val['thclass']."'" : '';
$aClass = ($key === $field) ? "sorted-" . $sorted : null;
Consider simplifying this complex logical expression. Open
Open
if($table && !$where && is_bool($fields))
{
// table is the query, fields used for multi
if($fields)
{
Consider simplifying this complex logical expression. Open
Open
if($field['type'] === 'method' && !empty($field['data']) && ($field['data'] === 'string' || $field['data'] === 'str' || $field['data'] === 'safestr' || $field['data'] === 'int'))
{
$searchable_types[] = 'method';
}
Consider simplifying this complex logical expression. Open
Open
if((!empty($parm) && !empty($mandatory[$parm]) && (int) $pref[$mandatory[$parm]] === 2) || $parm === 'true' || ($parm === 'email' && empty($pref['disable_emailcheck'])))
{
return "<span class='required'><!-- empty --></span>";
}
Consider simplifying this complex logical expression. Open
Open
if (!array_key_exists($uc_id,$this->fixed_classes)
&& ( getperms('0')
|| (
(!isset($opt_arr['matchclass']) || check_class($uc_id))
&&
Consider simplifying this complex logical expression. Open
Open
if((isset($_POST['e-token']) && !$this->checkFormToken($_POST['e-token']))
|| (isset($_GET['e-token']) && !$this->checkFormToken($_GET['e-token']))
|| (isset($_POST['e_token']) && !$this->checkFormToken($_POST['e_token']))) // '-' is not allowed in jquery. b
{
$this->log('Unauthorized access!');
Consider simplifying this complex logical expression. Open
Open
if($def == 'legacyCustom' || $def=='legacyDefault' ) // 0.6 themes.
{
// echo "MODE 0.6";
if($def == 'legacyCustom')
{
Consider simplifying this complex logical expression. Open
Open
if((!strpos($pref['download_denied'], ".php") &&
!strpos($pref['download_denied'], ".htm") &&
!strpos($pref['download_denied'], ".html") &&
!strpos($pref['download_denied'], ".shtml") ||
(strpos($pref['download_denied'], "signup.php") && USER == true)
Consider simplifying this complex logical expression. Open
Open
if ((isset($_POST['newthread']) && trim($_POST['subject']) == '') || trim($_POST['post']) == '')
{
message_handler('ALERT', 5);
}
else
Method parsesearch
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function parsesearch($table, $return_fields, $search_fields, $weights, $handler, $no_results, $where, $order)
Method form_password
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function form_password($form_name, $form_size, $form_value, $form_maxlength = FALSE, $form_class = 'tbox form-control', $form_readonly = '', $form_tooltip = '', $form_js = '') {
Method form_text
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function form_text($form_name, $form_size, $form_value, $form_maxlength = FALSE, $form_class = 'tbox form-control', $form_readonly = '', $form_tooltip = '', $form_js = '') {
Method renderInline
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function renderInline($dbField, $pid, $fieldName, $curVal, $linkText, $type='text', $array=null, $options=array())
Method e_log_event
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function e_log_event($importance, $source_call, $eventcode = 'GEN', $event_title = 'Untitled', $explain = '', $finished = FALSE, $target_logs = LOG_TO_AUDIT, $userData=null )
Method addEvent
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function addEvent($importance, $source_call, $eventcode = 'GEN', $event_title = 'Untitled', $explain = '', $finished = FALSE, $target_logs = LOG_TO_AUDIT, $userData=null )
Method compose_comment
has 8 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
function compose_comment($table, $action, $id, $width, $subject, $rate = FALSE, $return = FALSE, $tablerender = TRUE)
Avoid too many return
statements within this method. Open
Open
if ($just_check) return update_needed('Menu path changed required: '.$val['menu'].' ');
Avoid too many return
statements within this method. Open
Open
if ($just_check) return update_needed('Core search handlers need to be updated.');
Avoid too many return
statements within this method. Open
Open
if ($just_check) return update_needed();
Avoid too many return
statements within this method. Open
Open
return $ret;