Passed
Pull Request — master (#245)
by
unknown
34:41
created
lib/Doctrine/Common/Cache/CacheProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@
 block discarded – undo
334 334
      *
335 335
      * @param string $id The id of the cache entry to fetch.
336 336
      *
337
-     * @return mixed|false The cached data or FALSE, if no cache entry exists for the given id.
337
+     * @return string The cached data or FALSE, if no cache entry exists for the given id.
338 338
      */
339 339
     abstract protected function doFetch($id);
340 340
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -227,9 +227,9 @@
 block discarded – undo
227 227
 
228 228
     
229 229
         /**
230
-     * @param $prefix
231
-     * @return array
232
-     */
230
+         * @param $prefix
231
+         * @return array
232
+         */
233 233
     public function deleteByPrefix($prefix)
234 234
     {
235 235
         $prefix = $this->getNamespacedIdDelete($prefix);
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/PredisCache.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@
 block discarded – undo
78 78
     }
79 79
     
80 80
       
81
-      /**
82
-     * Deletes all cache entries beginning with the given string.
83
-     *
84
-     * @param string $prefix
85
-     * @return array An array of deleted cache ids
86
-     */
81
+        /**
82
+         * Deletes all cache entries beginning with the given string.
83
+         *
84
+         * @param string $prefix
85
+         * @return array An array of deleted cache ids
86
+         */
87 87
     public function deleteByPrefix($prefix)
88 88
     {
89 89
         $deleted = array ();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 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
 
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function deleteByPrefix($prefix)
88 88
     {
89
-        $deleted = array ();
89
+        $deleted = array();
90 90
         $deleted = $this->getIds($prefix);
91 91
         if ($deleted) {
92
-            foreach ( $deleted as $id ) {
92
+            foreach ($deleted as $id) {
93 93
                 $this->doDelete($id);
94 94
             }
95 95
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         if ($prefix) {
110 110
             return $this->client
111
-                ->keys('\[' . $prefix . '*');
111
+                ->keys('\['.$prefix.'*');
112 112
         } else {
113 113
             return $this->client
114 114
                 ->keys('*');
Please login to merge, or discard this patch.