Passed
Pull Request — master (#645)
by Georges
02:07
created
lib/Phpfastcache/Core/Pool/DriverBaseTrait.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
             throw new PhpfastcacheDriverCheckException(\sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName()));
71 71
         }
72 72
 
73
-        try{
73
+        try {
74 74
             $this->driverConnect();
75
-        }catch(\Exception $e){
75
+        } catch (\Exception $e) {
76 76
             throw new PhpfastcacheDriverConnectException(\sprintf(
77 77
                 self::DRIVER_CONNECT_FAILURE,
78 78
                 $this->getDriverName(),
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     protected function decode($value)
143 143
     {
144
-        return \unserialize((string)$value);
144
+        return \unserialize((string) $value);
145 145
     }
146 146
 
147 147
     /**
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
              * that has slow performances
282 282
              */
283 283
 
284
-            $tagsItem->set(\array_merge((array)$data, [$item->getKey() => $expTimestamp]));
284
+            $tagsItem->set(\array_merge((array) $data, [$item->getKey() => $expTimestamp]));
285 285
 
286 286
             /**
287 287
              * Set the expiration date
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         $tagsItems = $this->getItems($this->getTagKeys($item->getRemovedTags()));
304 304
 
305 305
         foreach ($tagsItems as $tagsItem) {
306
-            $data = (array)$tagsItem->get();
306
+            $data = (array) $tagsItem->get();
307 307
 
308 308
             unset($data[$item->getKey()]);
309 309
             $tagsItem->set($data);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         try{
74 74
             $this->driverConnect();
75
-        }catch(\Exception $e){
75
+        } catch(\Exception $e){
76 76
             throw new PhpfastcacheDriverConnectException(\sprintf(
77 77
                 self::DRIVER_CONNECT_FAILURE,
78 78
                 $this->getDriverName(),
Please login to merge, or discard this patch.