Test Failed
Push — master ( 067d49...ceed6c )
by Derek Stephen
05:08
created
src/RouterPackage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $c[ViewEngine::class] = $c->get(ViewEngine::class);
24 24
 
25
-        $c[NotFoundDecorator::class] = $c->factory(function (Container $c) {
25
+        $c[NotFoundDecorator::class] = $c->factory(function(Container $c) {
26 26
             $layout = $c->get('default_layout');
27 27
             $templates = $c->get('error_pages');
28 28
             $viewEngine = $c->get(ViewEngine::class);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             return $notFoundDecorator;
33 33
         });
34 34
 
35
-        $c[NotAllowedDecorator::class] = $c->factory(function (Container $c) {
35
+        $c[NotAllowedDecorator::class] = $c->factory(function(Container $c) {
36 36
             $layout = $c->get('default_layout');
37 37
             $templates = $c->get('error_pages');
38 38
             $viewEngine = $c->get(ViewEngine::class);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             return $notAllowedDecorator;
43 43
         });
44 44
 
45
-        $c[ExceptionDecorator::class] = $c->factory(function (Container $c) {
45
+        $c[ExceptionDecorator::class] = $c->factory(function(Container $c) {
46 46
             $viewEngine = $c->get(ViewEngine::class);
47 47
             $layout = $c->get('default_layout');
48 48
             $templates = $c->get('error_pages');
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             return $decorator;
53 53
         });
54 54
 
55
-        $c[PlatesStrategy::class] = $c->factory(function (Container $c) {
55
+        $c[PlatesStrategy::class] = $c->factory(function(Container $c) {
56 56
             $viewEngine = $c->get(ViewEngine::class);
57 57
             $notFoundDecorator = $c->get(NotFoundDecorator::class);
58 58
             $notAllowedDecorator = $c->get(NotAllowedDecorator::class);
Please login to merge, or discard this patch.
src/PlatesStrategy.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,9 +67,11 @@
 block discarded – undo
67 67
         $isHtmlResponse = $response instanceof HtmlResponse;
68 68
         $hasHtmlContent = strstr($contentType[0], 'text/html');
69 69
 
70
-        if (!$isHtmlResponse || !$hasHtmlContent)) {
70
+        if (!$isHtmlResponse || !$hasHtmlContent) {
71
+            ) {
71 72
             return $response;
72 73
         }
74
+        }
73 75
 
74 76
         $body = ['content' => $response->getBody()->getContents()];
75 77
         $body = $this->viewEngine->render($this->layout, $body);
Please login to merge, or discard this patch.