Showing 5 of 12 total issues

Method setupErrorHandling has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function setupErrorHandling(callable $handler = null)
    {
        set_error_handler(function ($errno, $errstr, $errfile, $errline) {
            // do not touch errors that are not marked for reporting
            if (!($errno & error_reporting())) {
Severity: Minor
Found in src/Log.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return 'notice';
    Severity: Major
    Found in src/Log.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return 'warning';
      Severity: Major
      Found in src/Log.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return 'info';
        Severity: Major
        Found in src/Log.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return 'debug';
          Severity: Major
          Found in src/Log.php - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language