Code Duplication    Length = 5-5 lines in 3 locations

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

@@ 371-375 (lines=5) @@
368
                    break;
369
                case 'flex':
370
                    // DB references in FlexForms
371
                    if (is_array($fieldRelations['flexFormRels']['db'])) {
372
                        foreach ($fieldRelations['flexFormRels']['db'] as $flexPointer => $subList) {
373
                            $this->createEntryDataForDatabaseRelationsUsingRecord($tableName, $record, $fieldName, $flexPointer, $deleted, $subList);
374
                        }
375
                    }
376
                    // File references in FlexForms
377
                    // @todo #65463 Test correct handling of file references in FlexForms
378
                    if (is_array($fieldRelations['flexFormRels']['file'])) {
@@ 378-382 (lines=5) @@
375
                    }
376
                    // File references in FlexForms
377
                    // @todo #65463 Test correct handling of file references in FlexForms
378
                    if (is_array($fieldRelations['flexFormRels']['file'])) {
379
                        foreach ($fieldRelations['flexFormRels']['file'] as $flexPointer => $subList) {
380
                            $this->createEntryDataForFileRelationsUsingRecord($tableName, $record, $fieldName, $flexPointer, $deleted, $subList);
381
                        }
382
                    }
383
                    // Soft references in FlexForms
384
                    // @todo #65464 Test correct handling of soft references in FlexForms
385
                    if (is_array($fieldRelations['flexFormRels']['softrefs'])) {
@@ 385-389 (lines=5) @@
382
                    }
383
                    // Soft references in FlexForms
384
                    // @todo #65464 Test correct handling of soft references in FlexForms
385
                    if (is_array($fieldRelations['flexFormRels']['softrefs'])) {
386
                        foreach ($fieldRelations['flexFormRels']['softrefs'] as $flexPointer => $subList) {
387
                            $this->createEntryDataForSoftReferencesUsingRecord($tableName, $record, $fieldName, $flexPointer, $deleted, $subList['keys']);
388
                        }
389
                    }
390
                    break;
391
            }
392
            // Soft references in the field