Completed
Push — 4.0 ( 0e3cc0...125a8d )
by Marco
03:38
created
src/Comodojo/Dispatcher/Dispatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,8 +201,8 @@
 block discarded – undo
201 201
 
202 202
         $params = $route->getParameter('headers');
203 203
 
204
-        if ( !empty($params) && is_array($params) ) {
205
-            foreach($params as $name => $value) {
204
+        if (!empty($params) && is_array($params)) {
205
+            foreach ($params as $name => $value) {
206 206
                 $this->getResponse()->getHeaders()->set($name, $value);
207 207
             }
208 208
         }
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Response/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@
 block discarded – undo
60 60
 
61 61
     }
62 62
 
63
-    public function description($code=null) {
63
+    public function description($code = null) {
64 64
 
65
-        if ( is_null($code) ) return $this->codes->getMessage($this->status_code);
65
+        if (is_null($code)) return $this->codes->getMessage($this->status_code);
66 66
 
67 67
         return $this->codes->getMessage($code);
68 68
 
Please login to merge, or discard this patch.