Code Duplication    Length = 3-3 lines in 2 locations

src/Metadata/Driver/YamlFileDriver.php 2 locations

@@ 270-272 (lines=3) @@
267
    protected function setEmbeds(Metadata\Interfaces\EmbedInterface $metadata, array $embedMapping)
268
    {
269
        foreach ($embedMapping as $key => $mapping) {
270
            if (!is_array($mapping)) {
271
                $mapping = ['type' => null, 'entity' => null];
272
            }
273
274
            if (!isset($mapping['type'])) {
275
                $mapping['type'] = null;
@@ 327-329 (lines=3) @@
324
    protected function setRelationships(Metadata\Interfaces\RelationshipInterface $metadata, array $relMapping)
325
    {
326
        foreach ($relMapping as $key => $mapping) {
327
            if (!is_array($mapping)) {
328
                $mapping = ['type' => null, 'entity' => null];
329
            }
330
331
            if (!isset($mapping['type'])) {
332
                $mapping['type'] = null;