Code Duplication    Length = 11-11 lines in 2 locations

src/Organizer/OrganizerLDProjector.php 2 locations

@@ 195-205 (lines=11) @@
192
    /**
193
     * @param WebsiteUpdated $websiteUpdated
194
     */
195
    private function applyWebsiteUpdated(WebsiteUpdated $websiteUpdated)
196
    {
197
        $organizerId = $websiteUpdated->getOrganizerId();
198
199
        $document = $this->repository->get($organizerId);
200
201
        $jsonLD = $document->getBody();
202
        $jsonLD->url = (string) $websiteUpdated->getWebsite();
203
204
        $this->repository->save($document->withBody($jsonLD));
205
    }
206
207
    /**
208
     * @param TitleUpdated $titleUpdated
@@ 210-220 (lines=11) @@
207
    /**
208
     * @param TitleUpdated $titleUpdated
209
     */
210
    private function applyTitleUpdated(TitleUpdated $titleUpdated)
211
    {
212
        $organizerId = $titleUpdated->getOrganizerId();
213
214
        $document = $this->repository->get($organizerId);
215
216
        $jsonLD = $document->getBody();
217
        $jsonLD->name = $titleUpdated->getTitle()->toNative();
218
219
        $this->repository->save($document->withBody($jsonLD));
220
    }
221
222
    /**
223
     * @param AddressUpdated $addressUpdated