| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | 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 | $this->response->setContent(require($this->route->getTarget('template'))); |
||
| 56 | } |
||
| 57 | |||
| 69 |