Completed
Pull Request — master (#140)
by
unknown
27:28 queued 27:28
created
lib/Doctrine/Common/Cache/PhpFileCache.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $value = $this->includeFileForId($id);
46 46
 
47
-        if (! $value) {
47
+        if ( ! $value) {
48 48
             return false;
49 49
         }
50 50
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $value = $this->includeFileForId($id);
64 64
 
65
-        if (! $value) {
65
+        if ( ! $value) {
66 66
             return false;
67 67
         }
68 68
 
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
 
81 81
         if (is_object($data) && ! method_exists($data, '__set_state')) {
82 82
             throw new \InvalidArgumentException(
83
-                "Invalid argument given, PhpFileCache only allows objects that implement __set_state() " .
84
-                "and fully support var_export(). You can use the FilesystemCache to save arbitrary object " .
83
+                "Invalid argument given, PhpFileCache only allows objects that implement __set_state() ".
84
+                "and fully support var_export(). You can use the FilesystemCache to save arbitrary object ".
85 85
                 "graphs using serialize()/deserialize()."
86 86
             );
87 87
         }
88 88
 
89
-        $filename  = $this->getFilename($id);
89
+        $filename = $this->getFilename($id);
90 90
 
91 91
         $value = array(
92 92
             'lifetime'  => $lifeTime,
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         // note: error suppression is still faster than `file_exists`, `is_file` and `is_readable`
112 112
         $value = @include $fileName;
113 113
 
114
-        if (! isset($value['lifetime'])) {
114
+        if ( ! isset($value['lifetime'])) {
115 115
             return false;
116 116
         }
117 117
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/PredisCache.php 1 patch
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.
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.