Code Duplication    Length = 8-9 lines in 2 locations

src/Event/DefaultEventEditingService.php 1 location

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

src/Place/DefaultPlaceEditingService.php 1 location

@@ 79-86 (lines=8) @@
76
    /**
77
     * {@inheritdoc}
78
     */
79
    public function updateMajorInfo($id, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, Theme $theme = null)
80
    {
81
        $this->guardId($id);
82
83
        return $this->commandBus->dispatch(
84
            new UpdateMajorInfo($id, $title, $eventType, $address, $calendar, $theme)
85
        );
86
    }
87
88
    /**
89
     * @inheritdoc