yiisoft/yii2

View on GitHub

Showing 2 of 2,466 total issues

Consider simplifying this complex logical expression.
Open

                    if (
                        $allowAppendSlash
                        && ($appendSlash || $offset === 1)
                        && (($offset - $oldOffset) === 1)
                        && isset($this->pattern[$offset + $length])
Severity: Critical
Found in framework/web/UrlRule.php - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

            if (
                $column->type === 'timestamp' && $info['Default'] === 'SYS_TIMESTAMP' ||
                $column->type === 'datetime' && $info['Default'] === 'SYS_DATETIME' ||
                $column->type === 'date' && $info['Default'] === 'SYS_DATE' ||
                $column->type === 'time' && $info['Default'] === 'SYS_TIME'
    Severity: Critical
    Found in framework/db/cubrid/Schema.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language