Code Duplication    Length = 8-9 lines in 2 locations

src/Place/DefaultPlaceEditingService.php 1 location

@@ 68-75 (lines=8) @@
65
    /**
66
     * {@inheritdoc}
67
     */
68
    public function updateMajorInfo($id, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, Theme $theme = null)
69
    {
70
        $this->guardId($id);
71
72
        return $this->commandBus->dispatch(
73
            new UpdateMajorInfo($id, $title, $eventType, $address, $calendar, $theme)
74
        );
75
    }
76
77
    /**
78
     * {@inheritdoc}

src/Event/DefaultEventEditingService.php 1 location

@@ 138-146 (lines=9) @@
135
    /**
136
     * {@inheritdoc}
137
     */
138
    public function updateMajorInfo($eventId, Title $title, EventType $eventType, Location $location, CalendarInterface $calendar, $theme = null)
139
    {
140
        $this->guardId($eventId);
141
142
        return $this->commandBus->dispatch(
143
            new UpdateMajorInfo($eventId, $title, $eventType, $location, $calendar, $theme)
144
        );
145
    }
146
147
    /**
148
     * @inheritdoc
149
     */