|
@@ -70,7 +70,7 @@ |
|
|
block discarded – undo |
|
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 { |
Please login to merge, or discard this patch.