Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 406-408 (lines=3) @@
403
                }
404
405
                // Evaluate second level cache
406
                if (isset($oneToOneElement['cache'])) {
407
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($oneToOneElement['cache']));
408
                }
409
410
                $metadata->mapOneToOne($mapping);
411
            }
@@ 445-447 (lines=3) @@
442
443
444
                // Evaluate second level cache
445
                if (isset($oneToManyElement['cache'])) {
446
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($oneToManyElement['cache']));
447
                }
448
449
                $metadata->mapOneToMany($mapping);
450
            }
@@ 494-496 (lines=3) @@
491
                }
492
493
                // Evaluate second level cache
494
                if (isset($manyToOneElement['cache'])) {
495
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($manyToOneElement['cache']));
496
                }
497
498
                $metadata->mapManyToOne($mapping);
499
            }
@@ 569-571 (lines=3) @@
566
                }
567
568
                // Evaluate second level cache
569
                if (isset($manyToManyElement['cache'])) {
570
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($manyToManyElement['cache']));
571
                }
572
573
                $metadata->mapManyToMany($mapping);
574
            }