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

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