@@ -68,8 +68,8 @@ discard block  | 
                                                    ||
| 68 | 68 | public function __construct($options = null)  | 
                                                        
| 69 | 69 |      { | 
                                                        
| 70 | 70 |          if (static::$extCouchbaseMajorVersion === null) { | 
                                                        
| 71 | -            $v = (string) phpversion('couchbase'); | 
                                                        |
| 72 | - static::$extCouchbaseMajorVersion = ($v !== '') ? (int) $v[0] : 0;  | 
                                                        |
| 71 | +            $v = (string)phpversion('couchbase'); | 
                                                        |
| 72 | + static::$extCouchbaseMajorVersion = ($v !== '') ? (int)$v[0] : 0;  | 
                                                        |
| 73 | 73 | }  | 
                                                        
| 74 | 74 |          if (static::$extCouchbaseMajorVersion < 2) { | 
                                                        
| 75 | 75 |              throw new Exception\ExtensionNotLoadedException('Need ext/couchbase version >= 2.0.0'); | 
                                                        
@@ -77,7 +77,7 @@ discard block  | 
                                                    ||
| 77 | 77 | parent::__construct($options);  | 
                                                        
| 78 | 78 | // reset initialized flag on update option(s)  | 
                                                        
| 79 | 79 | $initialized = &$this->initialized;  | 
                                                        
| 80 | -        $this->getEventManager()->attach('option', function () use (&$initialized) { | 
                                                        |
| 80 | +        $this->getEventManager()->attach('option', function() use (&$initialized) { | 
                                                        |
| 81 | 81 | $initialized = false;  | 
                                                        
| 82 | 82 | });  | 
                                                        
| 83 | 83 | }  | 
                                                        
@@ -107,7 +107,7 @@ discard block  | 
                                                    ||
| 107 | 107 | protected function internalSetItem(&$normalizedKey, &$value)  | 
                                                        
| 108 | 108 |      { | 
                                                        
| 109 | 109 | $memc = $this->getCouchbaseResource();  | 
                                                        
| 110 | - $internalKey = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 110 | + $internalKey = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 111 | 111 | |
| 112 | 112 |          try { | 
                                                        
| 113 | 113 | $memc->upsert($internalKey, $value, ['expiry' => $this->expirationTime()]);  | 
                                                        
@@ -141,7 +141,7 @@ discard block  | 
                                                    ||
| 141 | 141 | $this->namespacePrefix = '';  | 
                                                        
| 142 | 142 | |
| 143 | 143 |              if ($namespace !== '') { | 
                                                        
| 144 | - $this->namespacePrefix = $namespace.$options->getNamespaceSeparator();  | 
                                                        |
| 144 | + $this->namespacePrefix = $namespace . $options->getNamespaceSeparator();  | 
                                                        |
| 145 | 145 | }  | 
                                                        
| 146 | 146 | |
| 147 | 147 | // update initialized flag  | 
                                                        
@@ -222,7 +222,7 @@ discard block  | 
                                                    ||
| 222 | 222 | protected function internalAddItem(&$normalizedKey, &$value)  | 
                                                        
| 223 | 223 |      { | 
                                                        
| 224 | 224 | $memc = $this->getCouchbaseResource();  | 
                                                        
| 225 | - $internalKey = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 225 | + $internalKey = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 226 | 226 |          try { | 
                                                        
| 227 | 227 | $memc->insert($internalKey, $value, ['expiry' => $this->expirationTime()]);  | 
                                                        
| 228 | 228 |          } catch (\CouchbaseException $e) { | 
                                                        
@@ -269,7 +269,7 @@ discard block  | 
                                                    ||
| 269 | 269 | $namespacedKeyValuePairs = [];  | 
                                                        
| 270 | 270 | |
| 271 | 271 |          foreach ($normalizedKeyValuePairs as $normalizedKey => &$value) { | 
                                                        
| 272 | - $namespacedKeyValuePairs[$this->namespacePrefix.$normalizedKey] = ['value' => &$value];  | 
                                                        |
| 272 | + $namespacedKeyValuePairs[$this->namespacePrefix . $normalizedKey] = ['value' => &$value];  | 
                                                        |
| 273 | 273 | }  | 
                                                        
| 274 | 274 | unset($value);  | 
                                                        
| 275 | 275 | |
@@ -340,7 +340,7 @@ discard block  | 
                                                    ||
| 340 | 340 | $result = true;  | 
                                                        
| 341 | 341 | |
| 342 | 342 |          try { | 
                                                        
| 343 | - $memc->remove($this->namespacePrefix.$normalizedKey);  | 
                                                        |
| 343 | + $memc->remove($this->namespacePrefix . $normalizedKey);  | 
                                                        |
| 344 | 344 |          } catch (\CouchbaseException $e) { | 
                                                        
| 345 | 345 | $result = false;  | 
                                                        
| 346 | 346 | }  | 
                                                        
@@ -377,7 +377,7 @@ discard block  | 
                                                    ||
| 377 | 377 | protected function namespacesKeys(array &$normalizedKeys)  | 
                                                        
| 378 | 378 |      { | 
                                                        
| 379 | 379 |          foreach ($normalizedKeys as &$normalizedKey) { | 
                                                        
| 380 | - $normalizedKey = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 380 | + $normalizedKey = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 381 | 381 | }  | 
                                                        
| 382 | 382 | }  | 
                                                        
| 383 | 383 | |
@@ -398,7 +398,7 @@ discard block  | 
                                                    ||
| 398 | 398 | protected function internalCheckAndSetItem(&$token, &$normalizedKey, &$value)  | 
                                                        
| 399 | 399 |      { | 
                                                        
| 400 | 400 | $memc = $this->getCouchbaseResource();  | 
                                                        
| 401 | - $key = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 401 | + $key = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 402 | 402 | $success = null;  | 
                                                        
| 403 | 403 | $this->internalGetItem($key, $success, $token);  | 
                                                        
| 404 | 404 | |
@@ -430,7 +430,7 @@ discard block  | 
                                                    ||
| 430 | 430 | */  | 
                                                        
| 431 | 431 | protected function internalGetItem(&$normalizedKey, &$success = null, &$casToken = null)  | 
                                                        
| 432 | 432 |      { | 
                                                        
| 433 | - $internalKey = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 433 | + $internalKey = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 434 | 434 | $memc = $this->getCouchbaseResource();  | 
                                                        
| 435 | 435 | |
| 436 | 436 |          try { | 
                                                        
@@ -467,7 +467,7 @@ discard block  | 
                                                    ||
| 467 | 467 | $memc = $this->getCouchbaseResource();  | 
                                                        
| 468 | 468 | $expiration = $this->expirationTime();  | 
                                                        
| 469 | 469 |          try { | 
                                                        
| 470 | - $memc->replace($this->namespacePrefix.$normalizedKey, $value, ['expiry' => $expiration]);  | 
                                                        |
| 470 | + $memc->replace($this->namespacePrefix . $normalizedKey, $value, ['expiry' => $expiration]);  | 
                                                        |
| 471 | 471 |          } catch (\CouchbaseException $e) { | 
                                                        
| 472 | 472 | $result = false;  | 
                                                        
| 473 | 473 | }  | 
                                                        
@@ -489,7 +489,7 @@ discard block  | 
                                                    ||
| 489 | 489 | $redis = $this->getCouchbaseResource();  | 
                                                        
| 490 | 490 |          try { | 
                                                        
| 491 | 491 | $ttl = $this->getOptions()->getTtl();  | 
                                                        
| 492 | - $redis->touch($this->namespacePrefix.$normalizedKey, $ttl);  | 
                                                        |
| 492 | + $redis->touch($this->namespacePrefix . $normalizedKey, $ttl);  | 
                                                        |
| 493 | 493 |          } catch (\CouchbaseException $e) { | 
                                                        
| 494 | 494 | if ($e->getCode() === \COUCHBASE_KEY_EEXISTS  | 
                                                        
| 495 | 495 | || $e->getCode() === \COUCHBASE_KEY_ENOENT  | 
                                                        
@@ -514,7 +514,7 @@ discard block  | 
                                                    ||
| 514 | 514 | protected function internalHasItem(&$normalizedKey)  | 
                                                        
| 515 | 515 |      { | 
                                                        
| 516 | 516 | $memc = $this->getCouchbaseResource();  | 
                                                        
| 517 | - $internalKey = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 517 | + $internalKey = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 518 | 518 | |
| 519 | 519 |          try { | 
                                                        
| 520 | 520 | $result = $memc->get($internalKey)->value;  | 
                                                        
@@ -526,7 +526,7 @@ discard block  | 
                                                    ||
| 526 | 526 | }  | 
                                                        
| 527 | 527 | }  | 
                                                        
| 528 | 528 | |
| 529 | - return (bool) $result;  | 
                                                        |
| 529 | + return (bool)$result;  | 
                                                        |
| 530 | 530 | }  | 
                                                        
| 531 | 531 | |
| 532 | 532 | /**  | 
                                                        
@@ -620,8 +620,8 @@ discard block  | 
                                                    ||
| 620 | 620 | protected function internalIncrementItem(&$normalizedKey, &$value)  | 
                                                        
| 621 | 621 |      { | 
                                                        
| 622 | 622 | $couchbaseBucket = $this->getCouchbaseResource();  | 
                                                        
| 623 | - $internalKey = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 624 | - $value = (int) $value;  | 
                                                        |
| 623 | + $internalKey = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 624 | + $value = (int)$value;  | 
                                                        |
| 625 | 625 | $newValue = false;  | 
                                                        
| 626 | 626 | |
| 627 | 627 |          try { | 
                                                        
@@ -652,8 +652,8 @@ discard block  | 
                                                    ||
| 652 | 652 | protected function internalDecrementItem(&$normalizedKey, &$value)  | 
                                                        
| 653 | 653 |      { | 
                                                        
| 654 | 654 | $couchbaseBucket = $this->getCouchbaseResource();  | 
                                                        
| 655 | - $internalKey = $this->namespacePrefix.$normalizedKey;  | 
                                                        |
| 656 | - $value = - (int) $value;  | 
                                                        |
| 655 | + $internalKey = $this->namespacePrefix . $normalizedKey;  | 
                                                        |
| 656 | + $value = - (int)$value;  | 
                                                        |
| 657 | 657 | $newValue = false;  | 
                                                        
| 658 | 658 | |
| 659 | 659 |          try { |