@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | if (!empty($this->cacheIndex)) { |
97 | 97 | return; |
98 | 98 | } |
99 | - $this->cacheIndex = array_filter((array)Cache::read('index', $this->getConfig('cache'))); |
|
99 | + $this->cacheIndex = array_filter((array) Cache::read('index', $this->getConfig('cache'))); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -111,10 +111,10 @@ discard block |
||
111 | 111 | $this->readIndex(); |
112 | 112 | $key = $this->cacheKey($path, $query); |
113 | 113 | |
114 | - $response = (array)Cache::remember( |
|
114 | + $response = (array) Cache::remember( |
|
115 | 115 | $key, |
116 | - function () use ($key, $path, $query) { |
|
117 | - return (array)ApiClientProvider::getApiClient()->get($path, $query); |
|
116 | + function() use ($key, $path, $query) { |
|
117 | + return (array) ApiClientProvider::getApiClient()->get($path, $query); |
|
118 | 118 | }, |
119 | 119 | $this->getConfig('cache') |
120 | 120 | ); |