Completed
Pull Request — master (#144)
by Mihai
03:31 queued 01:10
created
lib/Doctrine/Common/Cache/PredisCache.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/RedisCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Cache/ChainCacheTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/CacheProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.