Passed
Push — v7 ( 6c782e...0f129b )
by Georges
01:49
created
lib/Phpfastcache/Drivers/Devtrue/Driver.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface};
19 19
 use Phpfastcache\Entities\DriverStatistic;
20 20
 use Phpfastcache\Exceptions\{
21
-  PhpfastcacheInvalidArgumentException
21
+    PhpfastcacheInvalidArgumentException
22 22
 };
23 23
 use Psr\Cache\CacheItemInterface;
24 24
 
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
     protected function driverRead(CacheItemInterface $item): array
65 65
     {
66 66
         return [
67
-          self::DRIVER_DATA_WRAPPER_INDEX => true,
68
-          self::DRIVER_TAGS_WRAPPER_INDEX => [],
69
-          self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(),
67
+            self::DRIVER_DATA_WRAPPER_INDEX => true,
68
+            self::DRIVER_TAGS_WRAPPER_INDEX => [],
69
+            self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(),
70 70
         ];
71 71
     }
72 72
 
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
     {
117 117
         $stat = new DriverStatistic();
118 118
         $stat->setInfo('[Devtrue] A void info string')
119
-          ->setSize(0)
120
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
121
-          ->setRawData(true);
119
+            ->setSize(0)
120
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
121
+            ->setRawData(true);
122 122
 
123 123
         return $stat;
124 124
     }
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Devtrue/Item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
20 20
 use Phpfastcache\Drivers\Devtrue\Driver as DevtrueDriver;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
22
+    PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
23 23
 };
24 24
 
25 25
 /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Cassandra/Item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
21 21
 use Phpfastcache\Drivers\Cassandra\Driver as CassandraDriver;
22 22
 use Phpfastcache\Exceptions\{
23
-  PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
23
+    PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
24 24
 };
25 25
 
26 26
 /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Wincache/Item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
20 20
 use Phpfastcache\Drivers\Wincache\Driver as WincacheDriver;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
22
+    PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
23 23
 };
24 24
 
25 25
 /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Memcache/Item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
20 20
 use Phpfastcache\Drivers\Memcache\Driver as MemcacheDriver;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
22
+    PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
23 23
 };
24 24
 
25 25
 /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Leveldb/Driver.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 use LevelDB as LeveldbClient;
19 19
 use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface, IO\IOHelperTrait};
20 20
 use Phpfastcache\Exceptions\{
21
-  PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException
21
+    PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException
22 22
 };
23 23
 use Psr\Cache\CacheItemInterface;
24 24
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
          * Check for Cross-Driver type confusion
85 85
          */
86 86
         if ($item instanceof Item) {
87
-            return (bool)$this->instance->set($item->getKey(), $this->encode($this->driverPreWrap($item)));
87
+            return (bool) $this->instance->set($item->getKey(), $this->encode($this->driverPreWrap($item)));
88 88
         }
89 89
 
90 90
         throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected');
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             $this->instance->close();
117 117
             $this->instance = null;
118 118
         }
119
-        $result = (bool)LeveldbClient::destroy($this->getLeveldbFile());
119
+        $result = (bool) LeveldbClient::destroy($this->getLeveldbFile());
120 120
         $this->driverConnect();
121 121
 
122 122
         return $result;
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Leveldb/Item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
20 20
 use Phpfastcache\Drivers\Leveldb\Driver as LeveldbDriver;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
22
+    PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
23 23
 };
24 24
 
25 25
 /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Devfalse/Driver.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
 namespace Phpfastcache\Drivers\Devfalse;
17 17
 
18 18
 use Phpfastcache\Core\Pool\{
19
-  DriverBaseTrait, ExtendedCacheItemPoolInterface
19
+    DriverBaseTrait, ExtendedCacheItemPoolInterface
20 20
 };
21 21
 use Phpfastcache\Entities\DriverStatistic;
22 22
 use Phpfastcache\Exceptions\{
23
-  PhpfastcacheInvalidArgumentException
23
+    PhpfastcacheInvalidArgumentException
24 24
 };
25 25
 use Psr\Cache\CacheItemInterface;
26 26
 
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
     protected function driverRead(CacheItemInterface $item): array
67 67
     {
68 68
         return [
69
-          self::DRIVER_DATA_WRAPPER_INDEX => false,
70
-          self::DRIVER_TAGS_WRAPPER_INDEX => [],
71
-          self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(),
69
+            self::DRIVER_DATA_WRAPPER_INDEX => false,
70
+            self::DRIVER_TAGS_WRAPPER_INDEX => [],
71
+            self::DRIVER_EDATE_WRAPPER_INDEX => new \DateTime(),
72 72
         ];
73 73
     }
74 74
 
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
     {
119 119
         $stat = new DriverStatistic();
120 120
         $stat->setInfo('[Devfalse] A void info string')
121
-          ->setSize(0)
122
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
123
-          ->setRawData(false);
121
+            ->setSize(0)
122
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
123
+            ->setRawData(false);
124 124
 
125 125
         return $stat;
126 126
     }
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Devfalse/Item.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
21 21
 use Phpfastcache\Drivers\Devfalse\Driver as DevfalseDriver;
22 22
 use Phpfastcache\Exceptions\{
23
-  PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
23
+    PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
24 24
 };
25 25
 
26 26
 /**
Please login to merge, or discard this patch.