Code Duplication    Length = 6-6 lines in 2 locations

src/MetadataManager.php 2 locations

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