Code Duplication    Length = 20-21 lines in 2 locations

src/Event/DefaultEventEditingService.php 1 location

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

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}