| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 6 | protected function createTemplateResponse(Request $request, array $viewParams = []): HtmlResponse |
|
| 35 | 6 | { |
|
| 36 | 6 | $template = $request->getAttribute('template', self::NOT_FOUND_TEMPLATE); |
|
| 37 | $status = $template === self::NOT_FOUND_TEMPLATE ? self::STATUS_NOT_FOUND : self::STATUS_OK; |
||
| 38 | return new HtmlResponse($this->renderer->render($template, $viewParams), $status); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |