Passed
Push — v7 ( 68570a...6c782e )
by Georges
01:49
created
lib/Phpfastcache/Drivers/Couchbase/Driver.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
 
18 18
 use CouchbaseCluster as CouchbaseClient;
19 19
 use Phpfastcache\Core\Pool\{
20
-  DriverBaseTrait, ExtendedCacheItemPoolInterface
20
+    DriverBaseTrait, ExtendedCacheItemPoolInterface
21 21
 };
22 22
 use Phpfastcache\Entities\DriverStatistic;
23 23
 use Phpfastcache\Exceptions\{
24
-  PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException
24
+    PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException
25 25
 };
26 26
 use Psr\Cache\CacheItemInterface;
27 27
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $authenticator->username($clientConfig->getUsername())->password($clientConfig->getPassword());
77 77
 
78 78
         $this->instance = new CouchbaseClient(
79
-          'couchbase://' . $clientConfig->getHost() . ($clientConfig->getPort() ? ":{$clientConfig->getPort()}" : '')
79
+            'couchbase://' . $clientConfig->getHost() . ($clientConfig->getPort() ? ":{$clientConfig->getPort()}" : '')
80 80
         );
81 81
 
82 82
         $this->instance->authenticate($authenticator);
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
         if ($item instanceof Item) {
115 115
             try {
116 116
                 return (bool)$this->getBucket()->upsert(
117
-                  $item->getEncodedKey(),
118
-                  $this->encode($this->driverPreWrap($item)),
119
-                  ['expiry' => $item->getTtl()]
117
+                    $item->getEncodedKey(),
118
+                    $this->encode($this->driverPreWrap($item)),
119
+                    ['expiry' => $item->getTtl()]
120 120
                 );
121 121
             } catch (\CouchbaseException $e) {
122 122
                 return false;
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
         $info = $this->getBucket()->manager()->info();
187 187
 
188 188
         return (new DriverStatistic())
189
-          ->setSize($info[ 'basicStats' ][ 'diskUsed' ])
190
-          ->setRawData($info)
191
-          ->setData(\implode(', ', \array_keys($this->itemInstances)))
192
-          ->setInfo('CouchBase version ' . $info[ 'nodes' ][ 0 ][ 'version' ] . ', Uptime (in days): ' . round($info[ 'nodes' ][ 0 ][ 'uptime' ] / 86400,
193
-              1) . "\n For more information see RawData.");
189
+            ->setSize($info[ 'basicStats' ][ 'diskUsed' ])
190
+            ->setRawData($info)
191
+            ->setData(\implode(', ', \array_keys($this->itemInstances)))
192
+            ->setInfo('CouchBase version ' . $info[ 'nodes' ][ 0 ][ 'version' ] . ', Uptime (in days): ' . round($info[ 'nodes' ][ 0 ][ 'uptime' ] / 86400,
193
+                1) . "\n For more information see RawData.");
194 194
     }
195 195
 }
196 196
\ No newline at end of file
Please login to merge, or discard this patch.