@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $response = $handler->handle($request); |
47 | 47 | $layout = $this->defaultLayout; |
48 | 48 | |
49 | - if ($response instanceof LayoutResponse) { |
|
49 | + if ($response instanceof LayoutResponse) { |
|
50 | 50 | $layout = $response->getLayout(); |
51 | 51 | } elseif ($response->hasHeader('layout')) { |
52 | 52 | $layout = $response->getHeader('layout')[0]; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | 'config' => $this->config |
68 | 68 | ]; |
69 | 69 | |
70 | - $body['user'] = $response->hasHeader('user') ? json_decode($response->getHeaderLine('user') ): null; |
|
70 | + $body['user'] = $response->hasHeader('user') ? json_decode($response->getHeaderLine('user')) : null; |
|
71 | 71 | $body = $this->viewEngine->render($layout, $body); |
72 | 72 | |
73 | 73 | return $this->getResponseWithBodyAndStatus($response, $body, $response->getStatusCode()); |