Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 401-403 (lines=3) @@
398
                }
399
400
                // Evaluate second level cache
401
                if (isset($oneToOneElement['cache'])) {
402
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($oneToOneElement['cache']));
403
                }
404
405
                $metadata->mapOneToOne($mapping);
406
            }
@@ 440-442 (lines=3) @@
437
438
439
                // Evaluate second level cache
440
                if (isset($oneToManyElement['cache'])) {
441
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($oneToManyElement['cache']));
442
                }
443
444
                $metadata->mapOneToMany($mapping);
445
            }
@@ 489-491 (lines=3) @@
486
                }
487
488
                // Evaluate second level cache
489
                if (isset($manyToOneElement['cache'])) {
490
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($manyToOneElement['cache']));
491
                }
492
493
                $metadata->mapManyToOne($mapping);
494
            }
@@ 564-566 (lines=3) @@
561
                }
562
563
                // Evaluate second level cache
564
                if (isset($manyToManyElement['cache'])) {
565
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($manyToManyElement['cache']));
566
                }
567
568
                $metadata->mapManyToMany($mapping);
569
            }