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;
@@ 312-314 (lines=3) @@
309
    protected function setRelationships(Metadata\Interfaces\RelationshipInterface $metadata, array $relMapping)
310
    {
311
        foreach ($relMapping as $key => $mapping) {
312
            if (!is_array($mapping)) {
313
                $mapping = ['type' => null, 'entity' => null];
314
            }
315
316
            if (!isset($mapping['type'])) {
317
                $mapping['type'] = null;