@@ -95,7 +95,7 @@ |
||
| 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 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function saveMultiple(array $keysAndValues, $lifetime = 0) |
| 114 | 114 | { |
| 115 | - if (! is_numeric($lifetime)) { |
|
| 115 | + if ( ! is_numeric($lifetime)) { |
|
| 116 | 116 | throw LifeTimeException::fromNonIntegerLifetime($lifetime); |
| 117 | 117 | } |
| 118 | 118 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public function save($id, $data, $lifeTime = 0) |
| 145 | 145 | { |
| 146 | - if (! is_numeric($lifeTime)) { |
|
| 146 | + if ( ! is_numeric($lifeTime)) { |
|
| 147 | 147 | throw LifeTimeException::fromNonIntegerLifetime($lifeTime); |
| 148 | 148 | } |
| 149 | 149 | |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | private function getNamespacedId($id) |
| 206 | 206 | { |
| 207 | - $namespaceVersion = $this->getNamespaceVersion(); |
|
| 207 | + $namespaceVersion = $this->getNamespaceVersion(); |
|
| 208 | 208 | |
| 209 | 209 | return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion); |
| 210 | 210 | } |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | $success = true; |
| 288 | 288 | |
| 289 | 289 | foreach ($keysAndValues as $key => $value) { |
| 290 | - if (!$this->doSave($key, $value, $lifetime)) { |
|
| 290 | + if ( ! $this->doSave($key, $value, $lifetime)) { |
|
| 291 | 291 | $success = false; |
| 292 | 292 | } |
| 293 | 293 | } |