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