Code Duplication    Length = 6-6 lines in 2 locations

src/MetadataManager.php 2 locations

@@ 55-60 (lines=6) @@
52
        $this->startEdmxTransaction();
53
        $NewEntity = new TEntityTypeType();
54
        $NewEntity->setName($name);
55
        if (null != $summary || null != $longDescription) {
56
            $documentation = new TDocumentationType();
57
            $documentation->setSummary($summary);
58
            $documentation->setLongDescription($longDescription);
59
            $NewEntity->setDocumentation($documentation);
60
        }
61
62
        $entitySet = new EntitySetAnonymousType();
63
        $entitySet->setName($this->pluralize(2, $NewEntity->getName()));
@@ 145-150 (lines=6) @@
142
        $NewProperty->setType($type);
143
        $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern);
144
        $NewProperty->setNullable($nullable);
145
        if (null != $summary || null != $longDescription) {
146
            $documentation = new TDocumentationType();
147
            $documentation->setSummary($summary);
148
            $documentation->setLongDescription($longDescription);
149
            $NewProperty->addToDocumentation($documentation);
150
        }
151
        if (null != $defaultValue) {
152
            $NewProperty->setDefaultValue($defaultValue);
153
        }