Code Duplication    Length = 3-3 lines in 2 locations

src/ArrayHydrator.php 2 locations

@@ 150-152 (lines=3) @@
147
        foreach ($metaData->associationMappings as $fieldName => $mapping) {
148
            $associationData = $this->getAssociatedId($fieldName, $mapping, $data);
149
            if (!empty($associationData)) {
150
                if (in_array($mapping['type'], [ClassMetadataInfo::ONE_TO_ONE, ClassMetadataInfo::MANY_TO_ONE])) {
151
                    $entity = $this->hydrateToOneAssociation($entity, $fieldName, $mapping, $associationData);
152
                }
153
154
                if (in_array($mapping['type'], [ClassMetadataInfo::ONE_TO_MANY, ClassMetadataInfo::MANY_TO_MANY])) {
155
                    $entity = $this->hydrateToManyAssociation($entity, $fieldName, $mapping, $associationData);
@@ 154-156 (lines=3) @@
151
                    $entity = $this->hydrateToOneAssociation($entity, $fieldName, $mapping, $associationData);
152
                }
153
154
                if (in_array($mapping['type'], [ClassMetadataInfo::ONE_TO_MANY, ClassMetadataInfo::MANY_TO_MANY])) {
155
                    $entity = $this->hydrateToManyAssociation($entity, $fieldName, $mapping, $associationData);
156
                }
157
            }
158
        }
159