Showing 571 of 6,975 total issues
Avoid deeply nested control flow statements. Open
Open
if (strpos($lbrks, $matches[1][$i]) !== false)
{
break;
}
Avoid deeply nested control flow statements. Open
Open
if ($key === array_key_last($authMethod)) {
return $this->invalidLogin($username,LOGIN_ABORT);
}
Avoid deeply nested control flow statements. Open
Open
if ($bbword == 'code') $nopro = TRUE;
Avoid deeply nested control flow statements. Open
Open
if (($code_stack[$i]['type'] == 'bbcode') && ($code_stack[$i]['code'] == $bbword) && ($code_stack[0]['numbers'] == $matches[3]))
{
$found = TRUE;
break;
}
Avoid deeply nested control flow statements. Open
Open
if ($stacktext != '')
{ // Stack the text we've accumulated so far
array_unshift($code_stack,array('type' => 'text','code' => $stacktext));
$stacktext = '';
}
Avoid deeply nested control flow statements. Open
Open
if(E107_DBG_SQLDETAILS)
{
$mes = e107::getMessage();
$mes->add("db_table_admin_class.php :: parse_field_defs() Line: 230 - Unknown definition {$i}: ".$fd[$i], E_MESSAGE_DEBUG);
}
Avoid deeply nested control flow statements. Open
Open
if(!unlink($dir . $obj))
{
return false;
}
Avoid deeply nested control flow statements. Open
Open
if(!class_exists($val. '_latest'))
{
trigger_error('<strong>' .$val . '</strong> is using a deprecated e_latest method. See plugin: _blank/e_dashboard.php ', E_USER_DEPRECATED);
$oldconfigs[$val] = admin_shortcodes::legacyToConfig($text);
Avoid deeply nested control flow statements. Open
Open
if(rename($path_to_file, $newFile) === true)
{
$finfo['pathinfo'] = pathinfo($newFile);
$path_to_file = $newFile;
}
Avoid deeply nested control flow statements. Open
Open
if(deftrue('e_DEBUG_PREFS'))
{
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2);
$log->logMessage(print_a($backtrace,true), E_MESSAGE_DEBUG);
}
Avoid deeply nested control flow statements. Open
Open
if ('!' == substr($disTrim, -1) && $v == str_replace('!', '', $disallow))
{ // Exact match search (noticed with exclamation mark in the end of the word)
$errMsg = ERR_DISALLOWED_TEXT_EXACT_MATCH;
}
elseif (stripos($v, $disTrim) !== false)
Avoid deeply nested control flow statements. Open
Open
if(!$this->rmtree($dir . $obj))
{
return false;
}
Method form_comment
has 9 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
function form_comment($action, $table, $id, $subject, $content_type, $return = FALSE, $rating = FALSE, $tablerender = TRUE,$pid = false)
Avoid deeply nested control flow statements. Open
Open
if(!$disallow_logs) $log->logMessage('Backup of <strong>'.$this->alias.' ('.$this->prefid.')</strong> successfully created.', E_MESSAGE_DEBUG, E_MESSAGE_SUCCESS, $session_messages);
Avoid deeply nested control flow statements. Open
Open
if ($installed = isset($pref['plug_installed'][$var['plugin_path']]))
{
$qryp = str_replace("{NID}", $row['comment_item_id'], $var['qry']);
if ($sql2->gen($qryp))
{
Avoid deeply nested control flow statements. Open
Open
if (isset($fd[$i + 1]))
{
$i++;
$defs['default'] = $fd[$i];
}
Avoid deeply nested control flow statements. Open
Open
if ($sql2->select($var['db_table'], $var['db_title'], $var['db_id']." = '".$row['comment_item_id']."' "))
{
$row2 = $sql2->fetch();
$ret['comment_type'] = $var['plugin_name'];
$ret['comment_title'] = $tp->toHTML($row2[$var['db_title']], TRUE, 'emotes_off, no_make_clickable');
Avoid deeply nested control flow statements. Open
Open
if(deftrue('e_DEBUG_PREFS'))
{
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2);
$log->logMessage(print_a($backtrace,true), E_MESSAGE_DEBUG);
}
Avoid deeply nested control flow statements. Open
Open
if(!$wmcaption)
{
$wmcaption = $tp->toHTML($row['gen_ip'], TRUE, 'TITLE');
}
Avoid deeply nested control flow statements. Open
Open
if(!USERID)
{
require_once(e_HANDLER.'login.php');
$usr = new userlogin($user_loginname, $user_pass, 'signup', '');
}