src/Exception/Generator.php

Summary

Maintainability
A
50 mins
Test Coverage

Method errorException has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

        string $message = '', int $code = 0, int $severity = E_ERROR,
        string $file = __FILE__, int $line = __LINE__, \Throwable $previous = null, int $offset = 2
Severity: Major
Found in src/Exception/Generator.php - About 50 mins to fix

    Reference to undeclared constant \Mvc5\Exception\Generator::DOMAIN
    Open

            return static::raise(static::create(static::DOMAIN, [$message, $code, $previous], $offset));
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Possibly zero references to public method \Mvc5\Exception\Generator::errorException()
    Open

        static function errorException(
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Reference to undeclared constant \Mvc5\Exception\Generator::ERROR_EXCEPTION
    Open

                static::instance(static::ERROR_EXCEPTION, [$message, $code, $severity, $file, $line, $previous]), $offset
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Reference to undeclared constant \Mvc5\Exception\Generator::EXCEPTION
    Open

            return static::raise(static::create(static::EXCEPTION, [$message, $code, $previous], $offset));
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Possibly zero references to public method \Mvc5\Exception\Generator::runtime()
    Open

        static function runtime(string $message = '', int $code = 0, \Throwable $previous = null, int $offset = 2)
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Possibly zero references to public method \Mvc5\Exception\Generator::exception()
    Open

        static function exception(string $message = '', int $code = 0, \Throwable $previous = null, int $offset = 2)
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Reference to undeclared constant \Mvc5\Exception\Generator::RUNTIME
    Open

            return static::raise(static::create(static::RUNTIME, [$message, $code, $previous], $offset));
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Possibly zero references to public method \Mvc5\Exception\Generator::domain()
    Open

        static function domain(string $message = '', int $code = 0, \Throwable $previous = null, int $offset = 2)
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    Reference to undeclared constant \Mvc5\Exception\Generator::INVALID_ARGUMENT
    Open

            return static::raise(static::create(static::INVALID_ARGUMENT, [$message, $code, $previous], $offset));
    Severity: Minor
    Found in src/Exception/Generator.php by phan

    There are no issues that match your filters.

    Category
    Status