@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Vehicle\App\Mutation; |
4 | 4 | |
5 | 5 | use App\Common\App\Transformer\AppGlobalId; |
6 | -use App\Common\Domain\MutationException; |
|
7 | 6 | use App\Common\Domain\ValidationException; |
8 | 7 | use App\Vehicle\Domain\Car; |
9 | 8 | use App\Vehicle\Domain\VehicleRepositoryInterface; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Vehicle\App\Mutation; |
4 | 4 | |
5 | 5 | use App\Common\App\Transformer\AppGlobalId; |
6 | -use App\Common\Domain\MutationException; |
|
7 | 6 | use App\Common\Domain\ValidationException; |
8 | 7 | use App\Vehicle\Domain\Truck; |
9 | 8 | use App\Vehicle\Domain\VehicleRepositoryInterface; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $errors = []; |
19 | 19 | |
20 | 20 | $violations = $error->getViolations(); |
21 | - foreach($violations as $violation) { |
|
21 | + foreach ($violations as $violation) { |
|
22 | 22 | $errors[] = [ |
23 | 23 | 'field' => $violation->getPropertyPath(), |
24 | 24 | 'message' => $violation->getMessage(), |