@@ -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 { |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | /** |
| 52 | 52 | * Make request with API url and specific URL suffix. |
| 53 | 53 | * |
| 54 | - * @param string $urlSuffix API URL method |
|
| 55 | 54 | * @param array $options Options |
| 55 | + * @param string $apiEndPoint |
|
| 56 | 56 | * |
| 57 | 57 | * @return ResponseInterface |
| 58 | 58 | */ |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Cache the api response data if cache set to true in config file. |
| 74 | 74 | * |
| 75 | - * @param Illuminate\Support\Collection $response |
|
| 75 | + * @param Response $response |
|
| 76 | 76 | * @param string $method method name |
| 77 | 77 | * @return GuzzleHttp\Psr7\Response api response |
| 78 | 78 | */ |