Passed
Push — master ( 8763d4...3f89cd )
by Divine Niiquaye
01:54
created
src/CacheItemPool.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->miss = new stdClass();
67 67
 
68 68
         $this->createCacheItem = Closure::bind(
69
-            static function ($key, $value, $isHit) {
69
+            static function($key, $value, $isHit) {
70 70
                 $item = new CacheItem();
71 71
                 $item->key = $key;
72 72
                 $item->value = $v = $value;
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         );
94 94
         $getId                 = Closure::fromCallable([$this, 'getId']);
95 95
         $this->mergeByLifetime = Closure::bind(
96
-            static function ($deferred, &$expiredIds) use ($getId) {
96
+            static function($deferred, &$expiredIds) use ($getId) {
97 97
                 $byLifetime = [];
98 98
                 $now = \microtime(true);
99 99
                 $expiredIds = [];
Please login to merge, or discard this patch.
src/FastCache.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             } elseif (null !== $fallback) {
138 138
                 $result[$key] = $this->save(
139 139
                     $key,
140
-                    function (CacheItemInterface $item, bool $save) use ($key, $fallback) {
140
+                    function(CacheItemInterface $item, bool $save) use ($key, $fallback) {
141 141
                         return $fallback(...[$key, &$item, &$save]);
142 142
                     },
143 143
                     $beta
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         }
149 149
 
150 150
         return \array_map(
151
-            function ($value) {
151
+            function($value) {
152 152
                 if ($value instanceof CacheItemInterface) {
153 153
                     return $value->get();
154 154
                 }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         static $setExpired;
186 186
 
187 187
         $setExpired = Closure::bind(
188
-            static function (CacheItem $item) {
188
+            static function(CacheItem $item) {
189 189
                 if (null === $item->expiry) {
190 190
                     return null;
191 191
                 }
@@ -197,12 +197,12 @@  discard block
 block discarded – undo
197 197
         );
198 198
 
199 199
         if ($this->storage instanceof PhpCachePool) {
200
-            $setExpired = static function (PhpCacheItem $item) {
200
+            $setExpired = static function(PhpCacheItem $item) {
201 201
                 return $item->getExpirationTimestamp();
202 202
             };
203 203
         }
204 204
 
205
-        $callback = function (CacheItemInterface $item, bool $save) use ($key, $callback) {
205
+        $callback = function(CacheItemInterface $item, bool $save) use ($key, $callback) {
206 206
             // don't wrap nor save recursive calls
207 207
             if (isset($this->computing[$key])) {
208 208
                 $value = $callback(...[&$item, &$save]);
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
         return $this->load(
250 250
             $key,
251
-            function (CacheItemInterface $item, bool $save) use ($callback, $key) {
251
+            function(CacheItemInterface $item, bool $save) use ($callback, $key) {
252 252
                 $dependencies = \array_merge(\array_slice($key, 1), [&$item, &$save]);
253 253
 
254 254
                 return $callback(...$dependencies);
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     public function wrap(callable $callback, ?float $beta = null): callable
264 264
     {
265
-        return function () use ($callback, $beta) {
265
+        return function() use ($callback, $beta) {
266 266
             return $this->call($callback, $beta);
267 267
         };
268 268
     }
Please login to merge, or discard this patch.