Code Duplication    Length = 11-11 lines in 2 locations

src/Organizer/OrganizerLDProjector.php 2 locations

@@ 157-167 (lines=11) @@
154
    /**
155
     * @param WebsiteUpdated $websiteUpdated
156
     */
157
    protected function applyWebsiteUpdated(WebsiteUpdated $websiteUpdated)
158
    {
159
        $organizerId = $websiteUpdated->getOrganizerId();
160
161
        $document = $this->repository->get($organizerId);
162
163
        $jsonLD = $document->getBody();
164
        $jsonLD->url = (string) $websiteUpdated->getWebsite();
165
166
        $this->repository->save($document->withBody($jsonLD));
167
    }
168
169
    /**
170
     * @param TitleUpdated $titleUpdated
@@ 172-182 (lines=11) @@
169
    /**
170
     * @param TitleUpdated $titleUpdated
171
     */
172
    protected function applyTitleUpdated(TitleUpdated $titleUpdated)
173
    {
174
        $organizerId = $titleUpdated->getOrganizerId();
175
176
        $document = $this->repository->get($organizerId);
177
178
        $jsonLD = $document->getBody();
179
        $jsonLD->name = $titleUpdated->getTitle()->toNative();
180
181
        $this->repository->save($document->withBody($jsonLD));
182
    }
183
184
    /**
185
     * @param AddressUpdated $addressUpdated