@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | return null !== $errorCallable ? |
| 83 | - $errorCallable($request, $response) : |
|
| 84 | - $response->withStatus(406) |
|
| 83 | + $errorCallable($request, $response) : $response->withStatus(406) |
|
| 85 | 84 | ->write('API version not present or not accepted'); |
| 86 | 85 | }; |
| 87 | 86 | } |