Conditions | 4 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
40 | public function call() |
||
41 | { |
||
42 | $this->setContentType($this->router->route->getTarget('extension')); |
||
43 | if (isset($this->router->route->getTarget('callback')[$this->router->route->getTarget('extension')])) { |
||
44 | $this->router->response->setContent(call_user_func_array($this->router->route->getTarget('callback')[$this->router->route->getTarget('extension')], [$this->router->route])); |
||
45 | } else { |
||
46 | ob_start(); |
||
47 | if (isset($this->router->route->getTarget()['data'])) extract($this->router->route->getTarget('data')); |
||
|
|||
48 | if (isset($this->router->route->getParams()['data'])) extract($this->router->route->getParams()['data']); |
||
49 | require($this->router->route->getTarget('template')); |
||
50 | $this->router->response->setContent(ob_get_clean()); |
||
51 | } |
||
52 | } |
||
53 | |||
65 |