Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 400-402 (lines=3) @@
397
                }
398
399
                // Evaluate second level cache
400
                if (isset($oneToOneElement->cache)) {
401
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($oneToOneElement->cache));
402
                }
403
404
                $metadata->mapOneToOne($mapping);
405
            }
@@ 444-446 (lines=3) @@
441
                }
442
443
                // Evaluate second level cache
444
                if (isset($oneToManyElement->cache)) {
445
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($oneToManyElement->cache));
446
                }
447
448
                $metadata->mapOneToMany($mapping);
449
            }
@@ 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
@@ 560-562 (lines=3) @@
557
                }
558
559
                // Evaluate second level cache
560
                if (isset($manyToManyElement->cache)) {
561
                    $mapping['cache'] = $metadata->getAssociationCacheDefaults($mapping['fieldName'], $this->cacheToArray($manyToManyElement->cache));
562
                }
563
564
                $metadata->mapManyToMany($mapping);
565
            }