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
@@ 344-348 (lines=5) @@
341
        $name = $association->getName();
342
        $as->setName($name);
343
        $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace();
344
        if (0 == strlen(trim($namespace))) {
345
            $associationSetName = $association->getName();
346
        } else {
347
            $associationSetName = $namespace . "." . $association->getName();
348
        }
349
        $as->setAssociation($associationSetName);
350
        $end1 = new EndAnonymousType();
351
        $end1->setRole($association->getEnd()[0]->getRole());