MCPcopy Create free account
hub / github.com/Rello/analytics / buildHttpErrorResult

Method buildHttpErrorResult

lib/Datasource/Github.php:263–272  ·  view source on GitHub ↗
(int $httpCode, array $curlResult, array $cache)

Source from the content-addressed store, hash-verified

261 }
262
263 private function buildHttpErrorResult(int $httpCode, array $curlResult, array $cache): array {
264 return [
265 'header' => [],
266 'dimensions' => [],
267 'data' => [],
268 'rawdata' => $curlResult,
269 'error' => $curlResult['request_error'] ?? $this->getHttpErrorMessage($httpCode, $curlResult['data'] ?? []),
270 'cache' => $cache,
271 ];
272 }
273
274 private function getHttpErrorMessage(int $httpCode, array $responseData): string {
275 if ($httpCode === 401) {

Callers 1

readDataMethod · 0.95

Calls 1

getHttpErrorMessageMethod · 0.95

Tested by

no test coverage detected