Code Duplication    Length = 3-5 lines in 2 locations

src/Cdb/CdbId/EventCdbIdExtractor.php 2 locations

@@ 94-96 (lines=3) @@
91
            );
92
        }
93
94
        if (!is_null($embeddedCdb->getActor()) && !is_null($embeddedCdb->getActor()->getCdbId())) {
95
            return $embeddedCdb->getActor()->getCdbId();
96
        }
97
98
        if (!is_null($embeddedCdb->getActor()) && !is_null($embeddedCdb->getActor()->getExternalId())) {
99
            return $externalIdMappingService->getCdbId(
@@ 98-102 (lines=5) @@
95
            return $embeddedCdb->getActor()->getCdbId();
96
        }
97
98
        if (!is_null($embeddedCdb->getActor()) && !is_null($embeddedCdb->getActor()->getExternalId())) {
99
            return $externalIdMappingService->getCdbId(
100
                $embeddedCdb->getActor()->getExternalId()
101
            );
102
        }
103
104
        return null;
105
    }