seatplus/esi-client

View on GitHub

Showing 4 of 4 total issues

Method __construct has 14 arguments (exceeds 4 allowed). Consider refactoring.
Open

        public string $http_user_agent = 'Seatplus Esi Client Default Library',

        // Esi
        public string $datasource = 'tranquility',
        public string $esi_scheme = 'https',
Severity: Major
Found in src/EsiConfiguration.php - About 1 hr to fix

    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

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

                public string $access_token,
                public string $refresh_token,
                public ?string $client_id = null,
                public ?string $secret = null,
                public string $token_expires = '1970-01-01 00:00:00',
        Severity: Minor
        Found in src/DataTransferObjects/EsiAuthentication.php - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language