Completed
Pull Request — master (#213)
by Anthon
34:10
created
tests/Doctrine/Tests/Common/Cache/FileCacheTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
      * @param int    $length
171 171
      * @param string $basePath
172 172
      *
173
-     * @return array
173
+     * @return string[]
174 174
      */
175 175
     public static function getKeyAndPathFittingLength($length, $basePath)
176 176
     {
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
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/CouchbaseCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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'],
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/MemcachedCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
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'],
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/RiakCache.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,10 +20,8 @@
 block discarded – undo
20 20
 namespace Doctrine\Common\Cache;
21 21
 
22 22
 use Basho\Riak;
23
-use Basho\Riak\Bucket;
24 23
 use Basho\Riak\Command;
25 24
 use Basho\Riak\Exception as RiakException;
26
-use Basho\Riak\Location;
27 25
 use Basho\Riak\Object;
28 26
 
29 27
 /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@
 block discarded – undo
299 299
      *
300 300
      * @param string $id
301 301
      * @param string $vClock
302
-     * @param array  $objectList
302
+     * @param Object[]  $objectList
303 303
      *
304 304
      * @return \Basho\Riak\Object
305 305
      */
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Cache/RiakCacheTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace Doctrine\Tests\Common\Cache;
4 4
 
5 5
 use Basho\Riak;
6
-use Basho\Riak\Bucket;
7 6
 use Basho\Riak\Command;
8 7
 use Basho\Riak\Exception as RiakException;
9
-use Basho\Riak\Location;
10 8
 use Basho\Riak\Node;
11 9
 use Doctrine\Common\Cache\RiakCache;
12 10
 
Please login to merge, or discard this patch.