@@ -47,7 +47,9 @@ |
||
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 |
@@ -194,7 +194,9 @@ discard block |
||
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 |
||
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 |