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
@@ 354-358 (lines=5) @@
351
        $name = $association->getName();
352
        $as->setName($name);
353
        $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace();
354
        if (0 == strlen(trim($namespace))) {
355
            $associationSetName = $association->getName();
356
        } else {
357
            $associationSetName = $namespace . "." . $association->getName();
358
        }
359
        $as->setAssociation($associationSetName);
360
        $end1 = new EndAnonymousType();
361
        $end1->setRole($association->getEnd()[0]->getRole());