Passed
Push — v9 ( 611ee9...b76a2e )
by Georges
01:59
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.
lib/Phpfastcache/Drivers/Arangodb/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@
 block discarded – undo
324 324
             ->setSize($rawData['collectionCount']);
325 325
     }
326 326
 
327
-    public function getConfig() : Config|ConfigurationOption
327
+    public function getConfig() : Config | ConfigurationOption
328 328
     {
329 329
         return $this->config;
330 330
     }
Please login to merge, or discard this patch.