Code Duplication    Length = 20-21 lines in 2 locations

src/Place/DefaultPlaceEditingService.php 1 location

@@ 36-55 (lines=20) @@
33
     * @param RepositoryInterface $writeRepository
34
     * @param LabelServiceInterface $labelService
35
     */
36
    public function __construct(
37
        CommandBusInterface $commandBus,
38
        UuidGeneratorInterface $uuidGenerator,
39
        DocumentRepositoryInterface $readRepository,
40
        OfferCommandFactoryInterface $commandFactory,
41
        RepositoryInterface $writeRepository,
42
        LabelServiceInterface $labelService
43
    ) {
44
        parent::__construct(
45
            $commandBus,
46
            $uuidGenerator,
47
            $readRepository,
48
            $commandFactory,
49
            $labelService,
50
            new PlaceTypeResolver(),
51
            new PlaceThemeResolver()
52
        );
53
54
        $this->writeRepository = $writeRepository;
55
    }
56
57
    /**
58
     * {@inheritdoc}

src/Event/DefaultEventEditingService.php 1 location

@@ 45-65 (lines=21) @@
42
     * @param RepositoryInterface $writeRepository
43
     * @param LabelServiceInterface $labelService
44
     */
45
    public function __construct(
46
        EventServiceInterface $eventService,
47
        CommandBusInterface $commandBus,
48
        UuidGeneratorInterface $uuidGenerator,
49
        DocumentRepositoryInterface $readRepository,
50
        OfferCommandFactoryInterface $commandFactory,
51
        RepositoryInterface $writeRepository,
52
        LabelServiceInterface $labelService
53
    ) {
54
        parent::__construct(
55
            $commandBus,
56
            $uuidGenerator,
57
            $readRepository,
58
            $commandFactory,
59
            $labelService,
60
            new EventTypeResolver(),
61
            new EventThemeResolver()
62
        );
63
        $this->eventService = $eventService;
64
        $this->writeRepository = $writeRepository;
65
    }
66
67
    /**
68
     * {@inheritdoc}