Code Duplication    Length = 7-8 lines in 2 locations

src/Providers/MetadataProvider.php 2 locations

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