Code Duplication    Length = 6-6 lines in 2 locations

src/MetadataManager.php 2 locations

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