bkdotcom/ErrorHandler

View on GitHub
src/ErrorHandler.php

Summary

Maintainability
B
4 hrs
Test Coverage
A
98%

File ErrorHandler.php has 277 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * @package   bdk\ErrorHandler
 * @author    Brad Kent <bkfake-github@yahoo.com>
Severity: Minor
Found in src/ErrorHandler.php - About 2 hrs to fix

    Method errorFactory has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        protected function errorFactory(self $handler, $errType, $errMsg, $file, $line, $vars = array())
    Severity: Minor
    Found in src/ErrorHandler.php - About 45 mins to fix

      Method handleError has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function handleError($errType, $errMsg, $file, $line, $vars = array())
      Severity: Minor
      Found in src/ErrorHandler.php - About 35 mins to fix

        Avoid too many return statements within this method.
        Open

                return null;
        Severity: Major
        Found in src/ErrorHandler.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status