Code Duplication    Length = 5-5 lines in 2 locations

lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php 1 location

@@ 73-77 (lines=5) @@
70
                isset($xmlRoot['repository-class']) ? (string) $xmlRoot['repository-class'] : null
71
            );
72
            $metadata->isMappedSuperclass = true;
73
        } else if ($xmlRoot->getName() == 'embeddable') {
74
            $metadata->isEmbeddedClass = true;
75
        } else {
76
            throw MappingException::classIsNotAValidEntityOrMappedSuperClass($className);
77
        }
78
79
        // Evaluate <entity...> attributes
80
        $primaryTable = [];

lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php 1 location

@@ 75-79 (lines=5) @@
72
                $element['repositoryClass'] ?? null
73
            );
74
            $metadata->isMappedSuperclass = true;
75
        } else if ($element['type'] == 'embeddable') {
76
            $metadata->isEmbeddedClass = true;
77
        } else {
78
            throw MappingException::classIsNotAValidEntityOrMappedSuperClass($className);
79
        }
80
81
        // Evaluate root level properties
82
        $primaryTable = [];