Passed
Push — v7 ( 7e6987...38cfdc )
by Georges
01:40
created
lib/Phpfastcache/Helper/Psr16Adapter.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 use Phpfastcache\Core\Item\ExtendedCacheItemInterface;
20 20
 use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheDriverCheckException, PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException, PhpfastcacheRootException, PhpfastcacheSimpleCacheException
22
+    PhpfastcacheDriverCheckException, PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException, PhpfastcacheRootException, PhpfastcacheSimpleCacheException
23 23
 };
24 24
 use Psr\SimpleCache\CacheInterface;
25 25
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     {
85 85
         try {
86 86
             $cacheItem = $this->internalCacheInstance
87
-              ->getItem($key)
88
-              ->set($value);
87
+                ->getItem($key)
88
+                ->set($value);
89 89
             if (\is_int($ttl) && $ttl <= 0) {
90 90
                 $cacheItem->expiresAt((new \DateTime('@0')));
91 91
             } elseif (\is_int($ttl) || $ttl instanceof \DateInterval) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  * @author Georges.L (Geolim4)  <[email protected]>
12 12
  *
13 13
  */
14
-declare(strict_types=1);
14
+declare(strict_types = 1);
15 15
 
16 16
 namespace Phpfastcache\Helper;
17 17
 
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function __construct($driver, $config = null)
45 45
     {
46
-        if($driver instanceof ExtendedCacheItemPoolInterface){
47
-            if($config !== null){
46
+        if ($driver instanceof ExtendedCacheItemPoolInterface) {
47
+            if ($config !== null) {
48 48
                 throw new PhpfastcacheLogicException("You can't pass a config parameter along with an non-string '\$driver' parameter.");
49 49
             }
50 50
             $this->internalCacheInstance = $driver;
51
-        }else{
51
+        } else {
52 52
             $this->internalCacheInstance = CacheManager::getInstance($driver, $config);
53 53
         }
54 54
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public function getMultiple($keys, $default = null)
134 134
     {
135 135
         try {
136
-            return array_map(function (ExtendedCacheItemInterface $item) {
136
+            return array_map(function(ExtendedCacheItemInterface $item) {
137 137
                 return $item->get();
138 138
             }, $this->internalCacheInstance->getItems($keys));
139 139
         } catch (PhpfastcacheInvalidArgumentException $e) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 throw new PhpfastcacheLogicException("You can't pass a config parameter along with an non-string '\$driver' parameter.");
49 49
             }
50 50
             $this->internalCacheInstance = $driver;
51
-        }else{
51
+        } else{
52 52
             $this->internalCacheInstance = CacheManager::getInstance($driver, $config);
53 53
         }
54 54
     }
Please login to merge, or discard this patch.