@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * Make request with API url and specific URL suffix. |
| 51 | 51 | * |
| 52 | - * @param string $urlSuffix API URL method |
|
| 53 | 52 | * @param array $options Options |
| 53 | + * @param string $apiEndPoint |
|
| 54 | 54 | * |
| 55 | 55 | * @return ResponseInterface |
| 56 | 56 | */ |
@@ -67,6 +67,10 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param ResponseInterface $response |
|
| 72 | + * @param string $method |
|
| 73 | + */ |
|
| 70 | 74 | public function cache($response, $method) |
| 71 | 75 | { |
| 72 | 76 | if (true == $this->hasToCache()) { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | public function cache($response, $method) |
| 71 | 71 | { |
| 72 | 72 | if (true == $this->hasToCache()) { |
| 73 | - return $this->cache->remember($this->cacheKey.snake_case($method), $this->getCacheDuration(), function () use ($response) { |
|
| 73 | + return $this->cache->remember($this->cacheKey.snake_case($method), $this->getCacheDuration(), function() use ($response) { |
|
| 74 | 74 | return collect(json_decode($response->getBody()->getContents())); |
| 75 | 75 | }); |
| 76 | 76 | } else { |