Code Duplication    Length = 6-6 lines in 2 locations

typo3/sysext/core/Classes/Database/ReferenceIndex.php 2 locations

@@ 1025-1030 (lines=6) @@
1022
                            break;
1023
                        case 'flex':
1024
                            // DB references in FlexForms
1025
                            if (is_array($fieldRelation['flexFormRels']['db'][$referenceRecord['flexpointer']])) {
1026
                                $error = $this->setReferenceValue_dbRels($referenceRecord, $fieldRelation['flexFormRels']['db'][$referenceRecord['flexpointer']], $newValue, $dataArray, $referenceRecord['flexpointer']);
1027
                                if ($error) {
1028
                                    return $error;
1029
                                }
1030
                            }
1031
                            // File references in FlexForms
1032
                            if (is_array($fieldRelation['flexFormRels']['file'][$referenceRecord['flexpointer']])) {
1033
                                $error = $this->setReferenceValue_fileRels($referenceRecord, $fieldRelation['flexFormRels']['file'][$referenceRecord['flexpointer']], $newValue, $dataArray, $referenceRecord['flexpointer']);
@@ 1032-1037 (lines=6) @@
1029
                                }
1030
                            }
1031
                            // File references in FlexForms
1032
                            if (is_array($fieldRelation['flexFormRels']['file'][$referenceRecord['flexpointer']])) {
1033
                                $error = $this->setReferenceValue_fileRels($referenceRecord, $fieldRelation['flexFormRels']['file'][$referenceRecord['flexpointer']], $newValue, $dataArray, $referenceRecord['flexpointer']);
1034
                                if ($error) {
1035
                                    return $error;
1036
                                }
1037
                            }
1038
                            // Soft references in FlexForms
1039
                            if ($referenceRecord['softref_key'] && is_array($fieldRelation['flexFormRels']['softrefs'][$referenceRecord['flexpointer']]['keys'][$referenceRecord['softref_key']])) {
1040
                                $error = $this->setReferenceValue_softreferences($referenceRecord, $fieldRelation['flexFormRels']['softrefs'][$referenceRecord['flexpointer']], $newValue, $dataArray, $referenceRecord['flexpointer']);