Passed
Pull Request — master (#45)
by Stefano
02:34
created
src/Controller/Component/ApiCacheComponent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.