Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/Persisters/Entity/JoinedSubclassPersister.php 2 locations

@@ 102-104 (lines=3) @@
99
        }
100
101
        switch (true) {
102
            case isset($this->class->associationMappings[$fieldName]['inherited']):
103
                $cm = $this->em->getClassMetadata($this->class->associationMappings[$fieldName]['inherited']);
104
                break;
105
106
            case isset($this->class->fieldMappings[$fieldName]['inherited']):
107
                $cm = $this->em->getClassMetadata($this->class->fieldMappings[$fieldName]['inherited']);
@@ 106-108 (lines=3) @@
103
                $cm = $this->em->getClassMetadata($this->class->associationMappings[$fieldName]['inherited']);
104
                break;
105
106
            case isset($this->class->fieldMappings[$fieldName]['inherited']):
107
                $cm = $this->em->getClassMetadata($this->class->fieldMappings[$fieldName]['inherited']);
108
                break;
109
110
            default:
111
                $cm = $this->class;