@@ -22,7 +22,7 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
25 | - * @param $globalId |
|
25 | + * @param string $globalId |
|
26 | 26 | * @return string|null |
27 | 27 | */ |
28 | 28 | public static function getTypeFromGlobalId(?string $globalId): ?string |
@@ -2,13 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Vehicle\App\Mutation; |
4 | 4 | |
5 | -use App\Common\App\Transformer\AppGlobalId; |
|
6 | -use App\Common\Domain\MutationException; |
|
7 | 5 | use App\Common\Domain\ValidationException; |
8 | 6 | use App\Vehicle\Domain\Input\TruckInput; |
9 | 7 | use App\Vehicle\Domain\Truck; |
10 | 8 | use App\Vehicle\Domain\VehicleRepositoryInterface; |
11 | -use GraphQL\Error\UserError; |
|
12 | 9 | use Overblog\GraphQLBundle\Definition\Argument; |
13 | 10 | use Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface; |
14 | 11 | use Overblog\GraphQLBundle\Definition\Resolver\MutationInterface; |
@@ -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 | 'name' => $violation->getPropertyPath(), |
24 | 24 | 'message' => $violation->getMessage(), |
@@ -35,7 +35,7 @@ |
||
35 | 35 | if (!$vehicle = $this->vehicleRepository->find($id)) { |
36 | 36 | throw new UserError(sprintf( |
37 | 37 | '%s [%s] not found', |
38 | - AppGlobalId::getTypeFromGlobalId($globalId) , |
|
38 | + AppGlobalId::getTypeFromGlobalId($globalId), |
|
39 | 39 | $globalId |
40 | 40 | )); |
41 | 41 | } |