Code Duplication    Length = 8-9 lines in 2 locations

src/Event/DefaultEventEditingService.php 1 location

@@ 127-135 (lines=9) @@
124
    /**
125
     * {@inheritdoc}
126
     */
127
    public function updateMajorInfo($eventId, Title $title, EventType $eventType, Location $location, CalendarInterface $calendar, $theme = null)
128
    {
129
        $this->guardId($eventId);
130
131
        return $this->commandBus->dispatch(
132
            new UpdateMajorInfo($eventId, $title, $eventType, $location, $calendar, $theme)
133
        );
134
    }
135
136
    /**
137
     * @inheritdoc
138
     */

src/Place/DefaultPlaceEditingService.php 1 location

@@ 89-96 (lines=8) @@
86
    /**
87
     * {@inheritdoc}
88
     */
89
    public function updateMajorInfo($id, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, Theme $theme = null)
90
    {
91
        $this->guardId($id);
92
93
        return $this->commandBus->dispatch(
94
            new UpdateMajorInfo($id, $title, $eventType, $address, $calendar, $theme)
95
        );
96
    }
97
98
    /**
99
     * @inheritdoc