Code Duplication    Length = 5-5 lines in 2 locations

src/Event/ReadModel/JSONLD/EventJsonDocumentLanguageAnalyzer.php 1 location

@@ 62-66 (lines=5) @@
59
        $body = $jsonDocument->getBody();
60
        $mainLanguage = isset($body->mainLanguage) ? $body->mainLanguage : 'nl';
61
62
        if (isset($body->bookingInfo->urlLabel) && is_string($body->bookingInfo->urlLabel)) {
63
            $body->bookingInfo->urlLabel = (object) [
64
                $mainLanguage => $body->bookingInfo->urlLabel,
65
            ];
66
        }
67
68
        return $jsonDocument->withBody($body);
69
    }

src/Place/ReadModel/JSONLD/PlaceJsonDocumentLanguageAnalyzer.php 1 location

@@ 69-73 (lines=5) @@
66
            ];
67
        }
68
69
        if (isset($body->bookingInfo->urlLabel) && is_string($body->bookingInfo->urlLabel)) {
70
            $body->bookingInfo->urlLabel = (object) [
71
                $mainLanguage => $body->bookingInfo->urlLabel,
72
            ];
73
        }
74
75
        return $jsonDocument->withBody($body);
76
    }