@@ -70,7 +70,7 @@ |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | // No lifetime, use MSET |
| 73 | - $response = $this->client->mset(array_map(function ($value) { |
|
| 73 | + $response = $this->client->mset(array_map(function($value) { |
|
| 74 | 74 | return serialize($value); |
| 75 | 75 | }, $keysAndValues)); |
| 76 | 76 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Predis\Client; |
| 6 | 6 | use Predis\ClientInterface; |
| 7 | -use Predis\Command\TransactionMulti; |
|
| 8 | 7 | use Predis\Transaction\MultiExec; |
| 9 | 8 | |
| 10 | 9 | /** |
@@ -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 | } |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\Common\Cache; |
| 4 | 4 | |
| 5 | -use Doctrine\Common\Cache\ApcCache; |
|
| 6 | 5 | use Doctrine\Common\Cache\ArrayCache; |
| 7 | 6 | use Doctrine\Common\Cache\ChainCache; |
| 8 | 7 | |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | */ |
| 236 | 236 | private function getNamespacedId($id) |
| 237 | 237 | { |
| 238 | - $namespaceVersion = $this->getNamespaceVersion(); |
|
| 238 | + $namespaceVersion = $this->getNamespaceVersion(); |
|
| 239 | 239 | |
| 240 | 240 | return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion); |
| 241 | 241 | } |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | $success = true; |
| 375 | 375 | |
| 376 | 376 | foreach ($keysAndValues as $key => $value) { |
| 377 | - if (!$this->doSave($key, $value, $lifetime)) { |
|
| 377 | + if ( ! $this->doSave($key, $value, $lifetime)) { |
|
| 378 | 378 | $success = false; |
| 379 | 379 | } |
| 380 | 380 | } |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | protected function doTag($id, array $tags = []) |
| 402 | 402 | { |
| 403 | 403 | foreach ($tags as $tag) { |
| 404 | - $set = (string)$this->doFetch($tag); |
|
| 404 | + $set = (string) $this->doFetch($tag); |
|
| 405 | 405 | $set = explode(';', $set); |
| 406 | 406 | $set[] = $id; |
| 407 | 407 | $set = array_unique($set); |