@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ); |
82 | 82 | |
83 | 83 | $this->instance->authenticate($authenticator); |
84 | - $this->setBucket($this->instance->openBucket( $clientConfig->getBucketName())); |
|
84 | + $this->setBucket($this->instance->openBucket($clientConfig->getBucketName())); |
|
85 | 85 | |
86 | 86 | return true; |
87 | 87 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | if ($item instanceof Item) { |
116 | 116 | try { |
117 | - return (bool)$this->getBucket()->upsert( |
|
117 | + return (bool) $this->getBucket()->upsert( |
|
118 | 118 | $item->getEncodedKey(), |
119 | 119 | $this->encode($this->driverPreWrap($item)), |
120 | 120 | ['expiry' => $item->getTtl()] |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | if ($item instanceof Item) { |
141 | 141 | try { |
142 | - return (bool)$this->getBucket()->remove($item->getEncodedKey()); |
|
142 | + return (bool) $this->getBucket()->remove($item->getEncodedKey()); |
|
143 | 143 | } catch (\Couchbase\Exception $e) { |
144 | 144 | return $e->getCode() === COUCHBASE_KEY_ENOENT; |
145 | 145 | } |
@@ -187,10 +187,10 @@ discard block |
||
187 | 187 | $info = $this->getBucket()->manager()->info(); |
188 | 188 | |
189 | 189 | return (new DriverStatistic()) |
190 | - ->setSize($info[ 'basicStats' ][ 'diskUsed' ]) |
|
190 | + ->setSize($info['basicStats']['diskUsed']) |
|
191 | 191 | ->setRawData($info) |
192 | 192 | ->setData(\implode(', ', \array_keys($this->itemInstances))) |
193 | - ->setInfo('CouchBase version ' . $info[ 'nodes' ][ 0 ][ 'version' ] . ', Uptime (in days): ' . round($info[ 'nodes' ][ 0 ][ 'uptime' ] / 86400, |
|
193 | + ->setInfo('CouchBase version ' . $info['nodes'][0]['version'] . ', Uptime (in days): ' . round($info['nodes'][0]['uptime'] / 86400, |
|
194 | 194 | 1) . "\n For more information see RawData."); |
195 | 195 | } |
196 | 196 | } |
197 | 197 | \ No newline at end of file |