bitslip6/bitfire

View on GitHub
error_handler.php

Summary

Maintainability
A
1 hr
Test Coverage

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

function on_err($errno, $errstr, $err_file, $err_line, $context = null): bool {
Severity: Minor
Found in error_handler.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

            return false; }
    Severity: Major
    Found in error_handler.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return false;
      Severity: Major
      Found in error_handler.php - About 30 mins to fix

        Possibly zero references to use statement for function update_ini_value (\BitFireSvr\update_ini_value)
        Open

        use function BitFireSvr\update_ini_value;
        Severity: Minor
        Found in error_handler.php by phan

        Possibly zero references to use statement for function httpp (\ThreadFin\httpp)
        Open

        use function ThreadFin\httpp;
        Severity: Minor
        Found in error_handler.php by phan

        There are no issues that match your filters.

        Category
        Status