Code Duplication    Length = 7-8 lines in 2 locations

src/Providers/MetadataProvider.php 2 locations

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