@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | */ |
192 | 192 | private function getNamespacedId($id) |
193 | 193 | { |
194 | - $namespaceVersion = $this->getNamespaceVersion(); |
|
194 | + $namespaceVersion = $this->getNamespaceVersion(); |
|
195 | 195 | |
196 | 196 | return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion); |
197 | 197 | } |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | $success = true; |
275 | 275 | |
276 | 276 | foreach ($keysAndValues as $key => $value) { |
277 | - if (!$this->doSave($key, $value, $lifetime)) { |
|
277 | + if ( ! $this->doSave($key, $value, $lifetime)) { |
|
278 | 278 | $success = false; |
279 | 279 | } |
280 | 280 | } |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | $success = true; |
307 | 307 | |
308 | 308 | foreach ($keys as $key) { |
309 | - if (! $this->doDelete($key)) { |
|
309 | + if ( ! $this->doDelete($key)) { |
|
310 | 310 | $success = false; |
311 | 311 | } |
312 | 312 | } |
@@ -108,7 +108,7 @@ |
||
108 | 108 | $stats = $this->couchbase->getStats(); |
109 | 109 | $servers = $this->couchbase->getServers(); |
110 | 110 | $server = explode(":", $servers[0]); |
111 | - $key = $server[0] . ":" . "11210"; |
|
111 | + $key = $server[0].":"."11210"; |
|
112 | 112 | $stats = $stats[$key]; |
113 | 113 | return [ |
114 | 114 | Cache::STATS_HITS => $stats['get_hits'], |
@@ -142,7 +142,7 @@ |
||
142 | 142 | { |
143 | 143 | $stats = $this->memcached->getStats(); |
144 | 144 | $servers = $this->memcached->getServerList(); |
145 | - $key = $servers[0]['host'] . ':' . $servers[0]['port']; |
|
145 | + $key = $servers[0]['host'].':'.$servers[0]['port']; |
|
146 | 146 | $stats = $stats[$key]; |
147 | 147 | return [ |
148 | 148 | Cache::STATS_HITS => $stats['get_hits'], |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | // Keys have lifetime, use SETEX for each of them |
97 | 97 | foreach ($keysAndValues as $key => $value) { |
98 | - if (!$this->redis->setex($key, $lifetime, $value)) { |
|
98 | + if ( ! $this->redis->setex($key, $lifetime, $value)) { |
|
99 | 99 | $success = false; |
100 | 100 | } |
101 | 101 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | protected function getSerializerValue() |
177 | 177 | { |
178 | - if (!defined('HHVM_VERSION') && defined('Redis::SERIALIZER_IGBINARY') && extension_loaded('igbinary')) { |
|
178 | + if ( ! defined('HHVM_VERSION') && defined('Redis::SERIALIZER_IGBINARY') && extension_loaded('igbinary')) { |
|
179 | 179 | return Redis::SERIALIZER_IGBINARY; |
180 | 180 | } |
181 | 181 |