Code Duplication    Length = 11-11 lines in 2 locations

src/Vehicle/App/Factory/VehicleFactory.php 2 locations

@@ 18-28 (lines=11) @@
15
     * @param Argument $argument
16
     * @return CarInput
17
     */
18
    public static function createCarInput(Argument $argument): CarInput
19
    {
20
        $input = $argument->offsetGet('input');
21
22
        return new CarInput(
23
            AppGlobalId::getIdFromGlobalId($input['id']),
24
            $input['manufacturer'],
25
            $input['model'],
26
            $input['seats_number']
27
        );
28
    }
29
30
    /**
31
     * @param CarInput $input
@@ 48-58 (lines=11) @@
45
     * @param Argument $argument
46
     * @return TruckInput
47
     */
48
    public static function createTruckInput(Argument $argument): TruckInput
49
    {
50
        $input = $argument->offsetGet('input');
51
52
        return new TruckInput(
53
            AppGlobalId::getIdFromGlobalId($input['id']),
54
            $input['manufacturer'],
55
            $input['model'],
56
            $input['maximum_load']
57
        );
58
    }
59
60
    /**
61
     * @param TruckInput $input