Code Duplication    Length = 3-3 lines in 2 locations

src/Metadata/Driver/YamlFileDriver.php 2 locations

@@ 271-273 (lines=3) @@
268
    protected function setEmbeds(Metadata\Interfaces\EmbedInterface $metadata, array $embedMapping)
269
    {
270
        foreach ($embedMapping as $key => $mapping) {
271
            if (!is_array($mapping)) {
272
                $mapping = ['type' => null, 'entity' => null];
273
            }
274
275
            if (!isset($mapping['type'])) {
276
                $mapping['type'] = null;
@@ 334-336 (lines=3) @@
331
    protected function setRelationships(Metadata\Interfaces\RelationshipInterface $metadata, array $relMapping)
332
    {
333
        foreach ($relMapping as $key => $mapping) {
334
            if (!is_array($mapping)) {
335
                $mapping = ['type' => null, 'entity' => null];
336
            }
337
338
            if (!isset($mapping['type'])) {
339
                $mapping['type'] = null;