@@ -31,7 +31,7 @@ |
||
| 31 | 31 | return; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - $event->setController(function () use ($errorResponse) { |
|
| 34 | + $event->setController(function() use ($errorResponse) { |
|
| 35 | 35 | return $errorResponse; |
| 36 | 36 | }); |
| 37 | 37 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | return new JsonResponse([ |
| 15 | 15 | 'message' => 'Please check your data', |
| 16 | - 'errors' => array_map(function (ConstraintViolation $violation) { |
|
| 16 | + 'errors' => array_map(function(ConstraintViolation $violation) { |
|
| 17 | 17 | |
| 18 | 18 | return [ |
| 19 | 19 | 'path' => $violation->getPropertyPath(), |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Fesor\RequestObject; |
| 4 | 4 | |
| 5 | -use Symfony\Component\HttpFoundation\Request as HttpRequest;; |
|
| 5 | +use Symfony\Component\HttpFoundation\Request as HttpRequest; ; |
|
| 6 | 6 | |
| 7 | 7 | interface PayloadResolver |
| 8 | 8 | { |