Code Duplication    Length = 6-6 lines in 2 locations

src/MetadataManager.php 2 locations

@@ 141-146 (lines=6) @@
138
        $NewProperty->setType($type);
139
        $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern);
140
        $NewProperty->setNullable($nullable);
141
        if (null != $summary || null != $longDescription) {
142
            $documentation = new TDocumentationType();
143
            $documentation->setSummary($summary);
144
            $documentation->setLongDescription($longDescription);
145
            $NewProperty->addToDocumentation($documentation);
146
        }
147
        if (null != $defaultValue) {
148
            $NewProperty->setDefaultValue($defaultValue);
149
        }
@@ 85-90 (lines=6) @@
82
        $NewEntity = new TComplexTypeType();
83
        $NewEntity->setName($name);
84
        $NewEntity->setTypeAccess($accessType);
85
        if (null != $summary || null != $longDescription) {
86
            $documentation = new TDocumentationType();
87
            $documentation->setSummary($summary);
88
            $documentation->setLongDescription($longDescription);
89
            $NewEntity->setDocumentation($documentation);
90
        }
91
        $this->V3Edmx->getDataServiceType()->getSchema()[0]->addToComplexType($NewEntity);
92
93
        return $NewEntity;