Code Duplication    Length = 7-8 lines in 2 locations

src/Providers/MetadataProvider.php 2 locations

@@ 170-177 (lines=8) @@
167
        switch ($associationUnderHammer->getAssociationType()) {
168
            case AssociationType::NULL_ONE_TO_NULL_ONE():
169
            case AssociationType::NULL_ONE_TO_ONE():
170
            case AssociationType::ONE_TO_ONE():
171
                $meta->addResourceReferenceSinglePropertyBidirectional(
172
                    $objectModel->getEntities()[$first->getBaseType()]->getOdataResourceType(),
173
                    $objectModel->getEntities()[$last->getBaseType()]->getOdataResourceType(),
174
                    $first->getRelationName(),
175
                    $last->getRelationName()
176
                );
177
                break;
178
            case AssociationType::NULL_ONE_TO_MANY():
179
            case AssociationType::ONE_TO_MANY():
180
                if ($first->getMultiplicity()->getValue() == AssociationStubRelationType::MANY) {
@@ 194-200 (lines=7) @@
191
                    $manySide->getRelationName()
192
                );
193
                break;
194
            case AssociationType::MANY_TO_MANY():
195
                $meta->addResourceSetReferencePropertyBidirectional(
196
                    $objectModel->getEntities()[$first->getBaseType()]->getOdataResourceType(),
197
                    $objectModel->getEntities()[$last->getBaseType()]->getOdataResourceType(),
198
                    $first->getRelationName(),
199
                    $last->getRelationName()
200
                );
201
        }
202
    }
203