|
@@ -88,7 +88,7 @@ |
|
|
block discarded – undo |
|
88
|
88
|
private function sendApiRequest(string $method, string $url): ?array |
|
89
|
89
|
{ |
|
90
|
90
|
try { |
|
91
|
|
- return \Cache::remember($this->getCacheKey($method, $url), self::CACHE_TTL, function () use ($method, $url) { |
|
|
91
|
+ return \Cache::remember($this->getCacheKey($method, $url), self::CACHE_TTL, function() use ($method, $url) { |
|
92
|
92
|
$response = $this->httpClient->request($method, $url); |
|
93
|
93
|
// No Content |
|
94
|
94
|
if ($response->getStatusCode() === 204) { |
Please login to merge, or discard this patch.