Completed
Push — 4.0 ( e97ee6...38d142 )
by Marco
03:44
created
src/Comodojo/Dispatcher/Components/ServerCache.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,9 @@
 block discarded – undo
47 47
 
48 48
         $cache_object = $this->cache->setNamespace('dispatcherservice')->get($name);
49 49
 
50
-        if ( is_null($cache_object) ) return false;
50
+        if ( is_null($cache_object) ) {
51
+            return false;
52
+        }
51 53
 
52 54
         $response->import($cache);
53 55
 
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Dispatcher.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -194,7 +194,9 @@  discard block
 block discarded – undo
194 194
 
195 195
         if ( !empty($params) && is_array($params) ) {
196 196
 
197
-            foreach($params as $name=>$value) $this->response->headers->set($name, $value);
197
+            foreach($params as $name=>$value) {
198
+                $this->response->headers->set($name, $value);
199
+            }
198 200
         }
199 201
 
200 202
     }
@@ -246,8 +248,11 @@  discard block
 block discarded – undo
246 248
 
247 249
         $this->logger->debug("Dispatcher run-cycle ends.");
248 250
 
249
-        if ( function_exists('fastcgi_finish_request') ) fastcgi_finish_request();
250
-        else ob_end_clean();
251
+        if ( function_exists('fastcgi_finish_request') ) {
252
+            fastcgi_finish_request();
253
+        } else {
254
+            ob_end_clean();
255
+        }
251 256
 
252 257
         return $return;
253 258
 
Please login to merge, or discard this patch.