Code Duplication    Length = 3-3 lines in 4 locations

lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php 4 locations

@@ 364-366 (lines=3) @@
361
                    $mapping['id'] = true;
362
                }
363
364
                if (isset($oneToOneElement['fetch'])) {
365
                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToOneElement['fetch']);
366
                }
367
368
                if (isset($oneToOneElement['mappedBy'])) {
369
                    $mapping['mappedBy'] = $oneToOneElement['mappedBy'];
@@ 418-420 (lines=3) @@
415
                    'mappedBy' => $oneToManyElement['mappedBy']
416
                ];
417
418
                if (isset($oneToManyElement['fetch'])) {
419
                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToManyElement['fetch']);
420
                }
421
422
                if (isset($oneToManyElement['cascade'])) {
423
                    $mapping['cascade'] = $oneToManyElement['cascade'];
@@ 460-462 (lines=3) @@
457
                    $mapping['id'] = true;
458
                }
459
460
                if (isset($manyToOneElement['fetch'])) {
461
                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToOneElement['fetch']);
462
                }
463
464
                if (isset($manyToOneElement['inversedBy'])) {
465
                    $mapping['inversedBy'] = $manyToOneElement['inversedBy'];
@@ 505-507 (lines=3) @@
502
                    'targetEntity' => $manyToManyElement['targetEntity']
503
                ];
504
505
                if (isset($manyToManyElement['fetch'])) {
506
                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToManyElement['fetch']);
507
                }
508
509
                if (isset($manyToManyElement['mappedBy'])) {
510
                    $mapping['mappedBy'] = $manyToManyElement['mappedBy'];