Code Duplication    Length = 3-3 lines in 2 locations

src/Metadata/Driver/YamlFileDriver.php 2 locations

@@ 266-268 (lines=3) @@
263
    protected function setEmbeds(Metadata\Interfaces\EmbedInterface $metadata, array $embedMapping)
264
    {
265
        foreach ($embedMapping as $key => $mapping) {
266
            if (!is_array($mapping)) {
267
                $mapping = ['type' => null, 'entity' => null];
268
            }
269
270
            if (!isset($mapping['type'])) {
271
                $mapping['type'] = null;
@@ 318-320 (lines=3) @@
315
    protected function setRelationships(Metadata\Interfaces\RelationshipInterface $metadata, array $relMapping)
316
    {
317
        foreach ($relMapping as $key => $mapping) {
318
            if (!is_array($mapping)) {
319
                $mapping = ['type' => null, 'entity' => null];
320
            }
321
322
            if (!isset($mapping['type'])) {
323
                $mapping['type'] = null;