Code Duplication    Length = 7-8 lines in 2 locations

src/Providers/MetadataProvider.php 2 locations

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