Code Duplication    Length = 18-19 lines in 2 locations

src/Place/DefaultPlaceEditingService.php 1 location

@@ 27-44 (lines=18) @@
24
     */
25
    protected $writeRepository;
26
27
    public function __construct(
28
        CommandBusInterface $commandBus,
29
        UuidGeneratorInterface $uuidGenerator,
30
        DocumentRepositoryInterface $readRepository,
31
        OfferCommandFactoryInterface $commandFactory,
32
        RepositoryInterface $writeRepository,
33
        LabelServiceInterface $labelService
34
    ) {
35
        parent::__construct(
36
            $commandBus,
37
            $uuidGenerator,
38
            $readRepository,
39
            $commandFactory,
40
            $labelService
41
        );
42
43
        $this->writeRepository = $writeRepository;
44
    }
45
46
    /**
47
     * {@inheritdoc}

src/Event/DefaultEventEditingService.php 1 location

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