Passed
Push — v7 ( e0234b...459005 )
by Georges
02:02
created
lib/Phpfastcache/Drivers/Memcached/Config.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
      * @var array
17 17
      */
18 18
     protected $servers = [
19
-      [
19
+        [
20 20
         'host' => '127.0.0.1',
21 21
         'port' => 11211,
22 22
         'saslUser' => false,
23 23
         'saslPassword' => false,
24
-      ],
24
+        ],
25 25
     ];
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Ssdb/Driver.php 2 patches
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, PhpfastcacheDriverCheckException, PhpfastcacheDriverException
21
+    PhpfastcacheInvalidArgumentException, PhpfastcacheDriverCheckException, PhpfastcacheDriverException
22 22
 };
23 23
 use Phpfastcache\Util\ArrayObject;
24 24
 use phpssdb\Core\{SimpleSSDB, SSDBException};
@@ -147,9 +147,9 @@  discard block
 block discarded – undo
147 147
          * using hardcoded offset of pair key-value :-(
148 148
          */
149 149
         $stat->setInfo(\sprintf("Ssdb-server v%s with a total of %s call(s).\n For more information see RawData.", $info[ 2 ], $info[ 6 ]))
150
-          ->setRawData($info)
151
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
152
-          ->setSize($this->instance->dbsize());
150
+            ->setRawData($info)
151
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
152
+            ->setSize($this->instance->dbsize());
153 153
 
154 154
         return $stat;
155 155
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
          * Data returned by Ssdb are very poorly formatted
147 147
          * using hardcoded offset of pair key-value :-(
148 148
          */
149
-        $stat->setInfo(\sprintf("Ssdb-server v%s with a total of %s call(s).\n For more information see RawData.", $info[ 2 ], $info[ 6 ]))
149
+        $stat->setInfo(\sprintf("Ssdb-server v%s with a total of %s call(s).\n For more information see RawData.", $info[2], $info[6]))
150 150
           ->setRawData($info)
151 151
           ->setData(\implode(', ', \array_keys($this->itemInstances)))
152 152
           ->setSize($this->instance->dbsize());
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Ssdb/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\Ssdb\Driver as SsdbDriver;
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/Zendshm/Driver.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface};
18 18
 use Phpfastcache\Entities\DriverStatistic;
19 19
 use Phpfastcache\Exceptions\{
20
-  PhpfastcacheInvalidArgumentException
20
+    PhpfastcacheInvalidArgumentException
21 21
 };
22 22
 use Psr\Cache\CacheItemInterface;
23 23
 
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
     {
132 132
         $stats = (array)zend_shm_cache_info();
133 133
         return (new DriverStatistic())
134
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
135
-          ->setInfo(\sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats[ 'items_total' ]))
136
-          ->setRawData($stats)
137
-          ->setSize($stats[ 'memory_total' ]);
134
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
135
+            ->setInfo(\sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats[ 'items_total' ]))
136
+            ->setRawData($stats)
137
+            ->setSize($stats[ 'memory_total' ]);
138 138
     }
139 139
 }
140 140
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,11 +129,11 @@
 block discarded – undo
129 129
      */
130 130
     public function getStats(): DriverStatistic
131 131
     {
132
-        $stats = (array)zend_shm_cache_info();
132
+        $stats = (array) zend_shm_cache_info();
133 133
         return (new DriverStatistic())
134 134
           ->setData(\implode(', ', \array_keys($this->itemInstances)))
135
-          ->setInfo(\sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats[ 'items_total' ]))
135
+          ->setInfo(\sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats['items_total']))
136 136
           ->setRawData($stats)
137
-          ->setSize($stats[ 'memory_total' ]);
137
+          ->setSize($stats['memory_total']);
138 138
     }
139 139
 }
140 140
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Zendshm/Item.php 1 patch
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\ExtendedCacheItemPoolInterface;
19 19
 use Phpfastcache\Drivers\Zendshm\Driver as ZendSHMDriver;
20 20
 use Phpfastcache\Exceptions\{
21
-  PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
21
+    PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidArgumentTypeException
22 22
 };
23 23
 
24 24
 /**
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Couchdb/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\Couchdb\Driver as CouchdbDriver;
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/Files/Driver.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 use Phpfastcache\Core\Pool\{DriverBaseTrait, ExtendedCacheItemPoolInterface, IO\IOHelperTrait};
19 19
 use Phpfastcache\Exceptions\{
20
-  PhpfastcacheInvalidArgumentException
20
+    PhpfastcacheInvalidArgumentException
21 21
 };
22 22
 use Phpfastcache\Util\Directory;
23 23
 use Psr\Cache\CacheItemInterface;
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Files/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\Files\Driver as FilesDriver;
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/Redis/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\Redis\Driver as RedisDriver;
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.