Code Duplication    Length = 6-6 lines in 2 locations

src/MetadataManager.php 2 locations

@@ 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
        }
@@ 90-95 (lines=6) @@
87
        $NewEntity = new TComplexTypeType();
88
        $NewEntity->setName($name);
89
        $NewEntity->setTypeAccess($accessType);
90
        if (null != $summary || null != $longDescription) {
91
            $documentation = new TDocumentationType();
92
            $documentation->setSummary($summary);
93
            $documentation->setLongDescription($longDescription);
94
            $NewEntity->setDocumentation($documentation);
95
        }
96
        $this->V3Edmx->getDataServiceType()->getSchema()[0]->addToComplexType($NewEntity);
97
98
        return $NewEntity;