@@ -14,11 +14,11 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function render(\Exception $e) |
| 16 | 16 | { |
| 17 | - if($e instanceof HttpException){ |
|
| 17 | + if ($e instanceof HttpException) { |
|
| 18 | 18 | return new Response($e->getMessage(), $e->getStatusCode(), $e->getHeaders()); |
| 19 | - } if($e instanceof \InvalidArgumentException){ |
|
| 19 | + } if ($e instanceof \InvalidArgumentException) { |
|
| 20 | 20 | return new Response($e->getMessage(), Response::HTTP_BAD_REQUEST); |
| 21 | - }else{ |
|
| 21 | + }else { |
|
| 22 | 22 | return new Response($e->getMessage(), Response::HTTP_INTERNAL_SERVER_ERROR); |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | return new Response($e->getMessage(), $e->getStatusCode(), $e->getHeaders()); |
| 19 | 19 | } if($e instanceof \InvalidArgumentException){ |
| 20 | 20 | return new Response($e->getMessage(), Response::HTTP_BAD_REQUEST); |
| 21 | - }else{ |
|
| 21 | + } else{ |
|
| 22 | 22 | return new Response($e->getMessage(), Response::HTTP_INTERNAL_SERVER_ERROR); |
| 23 | 23 | } |
| 24 | 24 | } |