Code Duplication    Length = 7-8 lines in 2 locations

src/Providers/MetadataProvider.php 2 locations

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