Passed
Push — v7 ( d0ef53...e507a8 )
by Georges
01:44
created
lib/Phpfastcache/Drivers/Devnull/Driver.php 1 patch
Indentation   +4 added lines, -4 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
 
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $stat = new DriverStatistic();
114 114
         $stat->setInfo('[Devnull] A void info string')
115
-          ->setSize(0)
116
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
117
-          ->setRawData(null);
115
+            ->setSize(0)
116
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
117
+            ->setRawData(null);
118 118
 
119 119
         return $stat;
120 120
     }
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Devnull/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\Devnull\Driver as DevnullDriver;
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/Cookie/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 Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface};
19 19
 use Phpfastcache\Entities\DriverStatistic;
20 20
 use Phpfastcache\Exceptions\{
21
-  PhpfastcacheInvalidArgumentException, PhpfastcacheDriverException
21
+    PhpfastcacheInvalidArgumentException, PhpfastcacheDriverException
22 22
 };
23 23
 use Psr\Cache\CacheItemInterface;
24 24
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $this->driverConnect();
61 61
         $keyword = self::PREFIX . $item->getKey();
62
-        $x = isset($_COOKIE[ $keyword ]) ? \json_decode($_COOKIE[ $keyword ], true) : false;
62
+        $x = isset($_COOKIE[$keyword]) ? \json_decode($_COOKIE[$keyword], true) : false;
63 63
 
64 64
         if ($x == false) {
65 65
             return null;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $this->driverConnect();
106 106
         $keyword = self::PREFIX . $key;
107
-        $x = isset($_COOKIE[ $keyword ]) ? $this->decode(\json_decode($_COOKIE[ $keyword ])->t) : 0;
107
+        $x = isset($_COOKIE[$keyword]) ? $this->decode(\json_decode($_COOKIE[$keyword])->t) : 0;
108 108
 
109 109
         return $x ? $x - \time() : $x;
110 110
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         if ($item instanceof Item) {
123 123
             $this->driverConnect();
124 124
             $keyword = self::PREFIX . $item->getKey();
125
-            $_COOKIE[ $keyword ] = null;
125
+            $_COOKIE[$keyword] = null;
126 126
 
127 127
             return @setcookie($keyword, null, -10);
128 128
         }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $this->driverConnect();
140 140
         foreach ($_COOKIE as $keyword => $value) {
141 141
             if (\strpos($keyword, self::PREFIX) !== false) {
142
-                $_COOKIE[ $keyword ] = null;
142
+                $_COOKIE[$keyword] = null;
143 143
                 $result = @setcookie($keyword, null, -10);
144 144
                 if ($return !== false) {
145 145
                     $return = $result;
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Cookie/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\Cookie\Driver as CookieDriver;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheInvalidArgumentException
22
+    PhpfastcacheInvalidArgumentException
23 23
 };
24 24
 
25 25
 /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Mongodb/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\Mongodb\Driver as MongodbDriver;
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/Riak/Driver.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface};
20 20
 use Phpfastcache\Entities\DriverStatistic;
21 21
 use Phpfastcache\Exceptions\{
22
-  PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException
22
+    PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException
23 23
 };
24 24
 use Phpfastcache\Util\ArrayObject;
25 25
 use Psr\Cache\CacheItemInterface;
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
          */
90 90
         if ($item instanceof Item) {
91 91
             $this->instance
92
-              ->bucket($this->bucketName)
93
-              ->newBinary($item->getKey(), $this->encode($this->driverPreWrap($item)))
94
-              ->store();
92
+                ->bucket($this->bucketName)
93
+                ->newBinary($item->getKey(), $this->encode($this->driverPreWrap($item)))
94
+                ->store();
95 95
             return true;
96 96
         }
97 97
 
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
         $info = $this->instance->bucket($this->bucketName)->getProperties();
143 143
 
144 144
         return (new DriverStatistic())
145
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
146
-          ->setRawData($info)
147
-          ->setSize(false)
148
-          ->setInfo('Riak does not provide size/date information att all :(');
145
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
146
+            ->setRawData($info)
147
+            ->setSize(false)
148
+            ->setInfo('Riak does not provide size/date information att all :(');
149 149
     }
150 150
 }
151 151
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Riak/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\Riak\Driver as RiakDriver;
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/Memcached/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\Memcached\Driver as MemcachedDriver;
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/Wincache/Driver.php 2 patches
Indentation   +5 added lines, -5 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
 
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
         $date = (new \DateTime())->setTimestamp(\time() - $info[ 'total_cache_uptime' ]);
122 122
 
123 123
         return (new DriverStatistic())
124
-          ->setInfo(\sprintf("The Wincache daemon is up since %s.\n For more information see RawData.", $date->format(DATE_RFC2822)))
125
-          ->setSize($memInfo[ 'memory_free' ] - $memInfo[ 'memory_total' ])
126
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
127
-          ->setRawData($memInfo);
124
+            ->setInfo(\sprintf("The Wincache daemon is up since %s.\n For more information see RawData.", $date->format(DATE_RFC2822)))
125
+            ->setSize($memInfo[ 'memory_free' ] - $memInfo[ 'memory_total' ])
126
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
127
+            ->setRawData($memInfo);
128 128
     }
129 129
 }
130 130
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,11 +118,11 @@
 block discarded – undo
118 118
     {
119 119
         $memInfo = wincache_ucache_meminfo();
120 120
         $info = wincache_ucache_info();
121
-        $date = (new \DateTime())->setTimestamp(\time() - $info[ 'total_cache_uptime' ]);
121
+        $date = (new \DateTime())->setTimestamp(\time() - $info['total_cache_uptime']);
122 122
 
123 123
         return (new DriverStatistic())
124 124
           ->setInfo(\sprintf("The Wincache daemon is up since %s.\n For more information see RawData.", $date->format(DATE_RFC2822)))
125
-          ->setSize($memInfo[ 'memory_free' ] - $memInfo[ 'memory_total' ])
125
+          ->setSize($memInfo['memory_free'] - $memInfo['memory_total'])
126 126
           ->setData(\implode(', ', \array_keys($this->itemInstances)))
127 127
           ->setRawData($memInfo);
128 128
     }
Please login to merge, or discard this patch.