Showing 571 of 6,973 total issues
Consider simplifying this complex logical expression. Open
Open
if(($ForcedCheck != false ) || ($syscache == false && $this->UserCacheActive) || ($syscache == true && $this->SystemCacheActive) && !e107::getParser()->checkHighlighting())
{
$cache_file = (isset($this) && $this instanceof ecache ? $this->cache_fname($CacheTag, $syscache) : self::cache_fname($CacheTag, $syscache));
if(file_exists($cache_file))
Consider simplifying this complex logical expression. Open
Open
if($this->VerifyResultLines($connection,"220")>0
&& $this->PutLine($connection,"HELO $localhost")
&& $this->VerifyResultLines($connection,"250")>0
&& $this->PutLine($connection,"MAIL FROM: <$localuser@$localhost>")
&& $this->VerifyResultLines($connection,"250")>0
Consider simplifying this complex logical expression. Open
Open
if(($file != '.') && ($file != '..') && !in_array($file, $this->dirFilter) && !in_array($file, $omit) && is_dir($path . '/' . $file) && ($fmask == '' || preg_match("#" . $fmask . "#", $file)))
{
$ret[] = $file;
}
Avoid deeply nested control flow statements. Open
Open
if (!array_key_exists(strtolower($fext),$this->allowed_types) )
{
if ($file == 'index.html' || $file == "null.txt")
{
if (filesize($dir.'/'.$file))
Avoid deeply nested control flow statements. Open
Open
if ($imageWidth > $allowedWidth)
{
$sBadImage = IMALAN_40." ($imageWidth)";
}
Avoid deeply nested control flow statements. Open
Open
if(!empty($sublinkArray))
{
$this->eLinkList['sub_'.$row['link_id']] = $sublinkArray;
}
Avoid deeply nested control flow statements. Open
Open
if (e107::callMethod($cls, 'bounce', $bounceInfo) === false)
{
e107::getLog()->add($plug . ' bounce process failed', $bounceInfo, E_LOG_FATAL, 'BOUNCE', LOG_TO_ROLLING);
}
Avoid deeply nested control flow statements. Open
Open
if (preg_match("#\<object\s*?mime\=[\"\']image\/.*?\>(.*?)\<\/object\>#si", $match[1][$a], $fmatch))
{
$e_file = $fmatch[1];
// echo "xep-0038 file: ".$e_file."<br />";
// Pull out all match strings - need to pick out any language definitions for posterity
Avoid deeply nested control flow statements. Open
Open
if (UH_DEBUG)
{
e107::getLog()->addEvent(10, __FILE__."|".__FUNCTION__."@".__LINE__, "DEBUG", "Upload Handler test", "Move {$tempfilename} to {$uploadfile} ", FALSE, LOG_TO_ROLLING);
}
Avoid deeply nested control flow statements. Open
Open
if($sql->gen("DESCRIBE " . MPREFIX . "{$table_list}"))
{
while($row3 = $sql->fetch())
{
$field_name = $row3['Field'];
Avoid deeply nested control flow statements. Open
Open
if($sql->gen("DESCRIBE " . MPREFIX . $table_list))
{
while($row3 = $sql->fetch())
{
$field_name = $row3['Field'];
Avoid deeply nested control flow statements. Open
Open
if ($nid != $udata['user_baseclasslist'])
{
if (US_DEBUG)
{
e107::getLog()->addEvent(10, debug_backtrace(), "DEBUG", "Usersettings test", "Write back classes; old list: {$udata['user_class']}; new list: ".$nid, false, LOG_TO_ROLLING);
Avoid deeply nested control flow statements. Open
Open
if($sql->gen("DESCRIBE " . MPREFIX . "{$table_list}"))
{
while($row3 = $sql->fetch())
{
$field_name = $row3['Field'];
Avoid deeply nested control flow statements. Open
Open
if ($imageHeight > $allowedHeight)
{
if (strlen($sBadImage))
{
$sBadImage .= ', ';
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
while ($i > 0) { $unmatch_stack[] = array_shift($code_stack); $i--; } // Get required code to top of stack
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($rule->allowVars)
{
foreach ($rule->allowVars as $key)
{
if(isset($_GET[$key]) && !$request->isRequestParam($key))
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;
}
Method form_textarea
has 9 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
public function form_textarea($form_name, $form_columns, $form_rows, $form_value, $form_js = '', $form_style = '', $form_wrap = '', $form_readonly = '', $form_tooltip = '') {