Passed
Push — master ( 5298e7...2e5326 )
by Derek Stephen
15:33 queued 05:33
created
src/Middleware/LayoutMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.