Completed
Push — master ( be3f36...a72f30 )
by Sinnarasa
02:49
created
src/Routing/Dispatcher/TemplateDispatcher.php 1 patch
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,11 +47,12 @@
 block discarded – undo
47 47
      */
48 48
     public function call()
49 49
     {
50
-        if ($this->response->getStatusCode() == 202)
51
-            $this->setContentType($this->route->getTarget('extension'));
52
-        if (isset($this->route->getTarget()['callback'][$this->route->getTarget('extension')]))
53
-            $this->response->setContent(call_user_func_array($this->route->getTarget()['callback'][$this->route->getTarget('extension')], [$this->route]));
54
-        else {
50
+        if ($this->response->getStatusCode() == 202) {
51
+                    $this->setContentType($this->route->getTarget('extension'));
52
+        }
53
+        if (isset($this->route->getTarget()['callback'][$this->route->getTarget('extension')])) {
54
+                    $this->response->setContent(call_user_func_array($this->route->getTarget()['callback'][$this->route->getTarget('extension')], [$this->route]));
55
+        } else {
55 56
             ob_start();
56 57
             require($this->route->getTarget('template'));
57 58
             $this->response->setContent(ob_get_clean());
Please login to merge, or discard this patch.