Completed
Push — master ( 1edf2c...bc33ad )
by Stefano
16s queued 12s
created
src/Controller/Component/ApiCacheComponent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     protected function updateCacheIndex(string $key, array $params): void
74 74
     {
75
-        $index = (array)Cache::read('index', $this->getConfig('cache'));
75
+        $index = (array) Cache::read('index', $this->getConfig('cache'));
76 76
         if (!empty($index[$key])) {
77 77
             return;
78 78
         }
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $key = $this->cacheKey($path, $query);
93 93
 
94
-        return (array)Cache::remember(
94
+        return (array) Cache::remember(
95 95
             $key,
96
-            function () use ($key, $path, $query) {
97
-                $response = (array)ApiClientProvider::getApiClient()->get($path, $query);
96
+            function() use ($key, $path, $query) {
97
+                $response = (array) ApiClientProvider::getApiClient()->get($path, $query);
98 98
                 $this->updateCacheIndex($key, compact('path', 'query'));
99 99
 
100 100
                 return $response;
Please login to merge, or discard this patch.