coralogix/php-coralogix-sdk

View on GitHub
src/Coralogix/Handlers/CoralogixMonologHandler.php

Summary

Maintainability
A
0 mins
Test Coverage

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Wontfix

    public function __construct(string $private_key = NULL, string $app_name = NULL, string $subsystem = NULL, $level = Logger::DEBUG, $bubble = true)
Severity: Minor
Found in src/Coralogix/Handlers/CoralogixMonologHandler.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Wontfix

                case 500: return Severity::CRITICAL; // CRITICAL
    Severity: Major
    Found in src/Coralogix/Handlers/CoralogixMonologHandler.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Wontfix

                  case 550: return Severity::CRITICAL; // ALERT
      Severity: Major
      Found in src/Coralogix/Handlers/CoralogixMonologHandler.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Wontfix

                    default: return Severity::DEBUG;
        Severity: Major
        Found in src/Coralogix/Handlers/CoralogixMonologHandler.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Wontfix

                      case 600: return Severity::CRITICAL; // EMERGENCY
          Severity: Major
          Found in src/Coralogix/Handlers/CoralogixMonologHandler.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Wontfix

                        case 400: return Severity::ERROR; // ERROR
            Severity: Major
            Found in src/Coralogix/Handlers/CoralogixMonologHandler.php - About 30 mins to fix

              There are no issues that match your filters.

              Category
              Status