Completed
Push — master ( a516d8...61ea01 )
by Alejandro
04:09
created
test/ErrorHandler/ContentBasedErrorHandlerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
         $this->errorHandler = new ContentBasedErrorResponseGenerator(
23 23
             new ErrorResponseGeneratorManager(new ServiceManager(), [
24 24
                 'factories' => [
25
-                    'text/html' => [$this, 'factory'],
26
-                    'application/json' => [$this, 'factory'],
25
+                    'text/html' => [ $this, 'factory' ],
26
+                    'application/json' => [ $this, 'factory' ],
27 27
                 ],
28 28
             ]),
29 29
             new NullLogger(),
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function factory($container, $name)
35 35
     {
36
-        return function () use ($name) {
36
+        return function() use ($name) {
37 37
             return (new Response())->withHeader('Content-type', $name);
38 38
         };
39 39
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function ifNoErrorHandlerIsFoundAnExceptionIsThrown()
76 76
     {
77 77
         $this->errorHandler = new ContentBasedErrorResponseGenerator(
78
-            new ErrorResponseGeneratorManager(new ServiceManager(), []),
78
+            new ErrorResponseGeneratorManager(new ServiceManager(), [ ]),
79 79
             new NullLogger(),
80 80
             new BasicLogMessageBuilder()
81 81
         );
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         $this->errorHandler = new ContentBasedErrorResponseGenerator(
92 92
             new ErrorResponseGeneratorManager(new ServiceManager(), [
93 93
                 'factories' => [
94
-                    'text/html' => [$this, 'factory'],
95
-                    'application/json' => [$this, 'factory'],
94
+                    'text/html' => [ $this, 'factory' ],
95
+                    'application/json' => [ $this, 'factory' ],
96 96
                 ],
97 97
             ]),
98 98
             new NullLogger(),
Please login to merge, or discard this patch.