Code Duplication    Length = 6-6 lines in 2 locations

src/MetadataManager.php 2 locations

@@ 144-149 (lines=6) @@
141
        $NewProperty->setType($type);
142
        $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern);
143
        $NewProperty->setNullable($nullable);
144
        if (null != $summary || null != $longDescription) {
145
            $documentation = new TDocumentationType();
146
            $documentation->setSummary($summary);
147
            $documentation->setLongDescription($longDescription);
148
            $NewProperty->addToDocumentation($documentation);
149
        }
150
        if (null != $defaultValue) {
151
            $NewProperty->setDefaultValue($defaultValue);
152
        }
@@ 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()));