| Conditions | 5 |
| Paths | 10 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 9 | ||
| Bugs | 2 | Features | 3 |
| 1 | <?php |
||
| 48 | public function call() |
||
| 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 { |
||
| 55 | ob_start(); |
||
| 56 | if(isset($this->route->getTarget()['data']))extract($this->route->getTarget('data')); |
||
|
|
|||
| 57 | if(isset($this->route->getParams()['data']))extract($this->route->getParams()['data']); |
||
| 58 | require($this->route->getTarget('template')); |
||
| 59 | $this->response->setContent(ob_get_clean()); |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 74 |