Code Duplication    Length = 6-6 lines in 2 locations

src/MetadataManager.php 2 locations

@@ 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;
@@ 152-157 (lines=6) @@
149
        $NewProperty->setType($type);
150
        $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern);
151
        $NewProperty->setNullable($nullable);
152
        if (null != $summary || null != $longDescription) {
153
            $documentation = new TDocumentationType();
154
            $documentation->setSummary($summary);
155
            $documentation->setLongDescription($longDescription);
156
            $NewProperty->addToDocumentation($documentation);
157
        }
158
        if (null != $defaultValue) {
159
            $NewProperty->setDefaultValue($defaultValue);
160
        }