Passed
Push — v9 ( 5d13b4...a92e11 )
by Georges
01:50
created
lib/Phpfastcache/CacheManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $config = self::validateConfig($config);
141 141
         $driver = self::standardizeDriverName($driver);
142 142
 
143
-        $instanceId = $instanceId ?: md5($driver . \serialize(\array_filter($config->toArray(), static fn ($val) => !\is_callable($val))));
143
+        $instanceId = $instanceId ?: md5($driver . \serialize(\array_filter($config->toArray(), static fn($val) => !\is_callable($val))));
144 144
 
145 145
         if (!isset(self::$instances[$instanceId])) {
146 146
             $driverClass = self::validateDriverClass(self::getDriverClass($driver));
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         $found = false;
264 264
         self::$instances = \array_filter(
265 265
             \array_map(
266
-                static function (ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found) {
266
+                static function(ExtendedCacheItemPoolInterface $cachePool) use ($cachePoolInstance, &$found) {
267 267
                     if (\spl_object_hash($cachePool) === \spl_object_hash($cachePoolInstance)) {
268 268
                         $found = true;
269 269
                         return null;
Please login to merge, or discard this patch.