seatplus/esi-client

View on GitHub
src/Fetcher/GuzzleFetcher.php

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

Method httpRequest has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function httpRequest(string $method, string $uri, array $headers = [], array $body = []): EsiResponse
    {
        // Add some debug logging and start measuring how long the request took.
        $this->logger->debug('Making '.$method.' request to '.$uri);
        $start = microtime(true);
Severity: Minor
Found in src/Fetcher/GuzzleFetcher.php - About 1 hr to fix

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

        private function logFetcherActivity(string $level, ResponseInterface $response, string $method, string $uri, float|string $start): void
    Severity: Minor
    Found in src/Fetcher/GuzzleFetcher.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status