Showing 4 of 4 total issues
Method __construct
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public string $http_user_agent = 'Seatplus Esi Client Default Library',
// Esi
public string $datasource = 'tranquility',
public string $esi_scheme = 'https',
Method httpRequest
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Method logFetcherActivity
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function logFetcherActivity(string $level, ResponseInterface $response, string $method, string $uri, float|string $start): void
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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',