Code Duplication    Length = 5-5 lines in 2 locations

src/MetadataManager.php 2 locations

@@ 65-69 (lines=5) @@
62
        $entitySet = new EntitySetAnonymousType();
63
        $entitySet->setName($this->pluralize(2, $NewEntity->getName()));
64
        $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace();
65
        if (0 == strlen(trim($namespace))) {
66
            $entityTypeName = $NewEntity->getName();
67
        } else {
68
            $entityTypeName = $namespace . "." . $NewEntity->getName();
69
        }
70
        $entitySet->setEntityType($entityTypeName);
71
        $entitySet->setGetterAccess($accessType);
72
@@ 316-320 (lines=5) @@
313
        $name = $association->getName();
314
        $as->setName($name);
315
        $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace();
316
        if (0 == strlen(trim($namespace))) {
317
            $associationSetName = $association->getName();
318
        } else {
319
            $associationSetName = $namespace . "." . $association->getName();
320
        }
321
        $as->setAssociation($associationSetName);
322
        $end1 = new EndAnonymousType();
323
        $end1->setRole($association->getEnd()[0]->getRole());