Completed
Push — master ( 3632d1...dbedfe )
by Diogo Oliveira de
02:12
created
SlimX/Controllers/Action.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $callable = $this->callable;
64 64
         $errorCallable = $this->errorCallable;
65
-        $this->callable = function (
65
+        $this->callable = function(
66 66
             RequestInterface $request,
67 67
             Response $response,
68 68
             array $args
@@ -80,8 +80,7 @@  discard block
 block discarded – undo
80 80
             }
81 81
 
82 82
             return null !== $errorCallable ?
83
-                $errorCallable($response) :
84
-                $response->withStatus(406)
83
+                $errorCallable($response) : $response->withStatus(406)
85 84
                     ->write('API version not present or not accepted');
86 85
         };
87 86
     }
Please login to merge, or discard this patch.