Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 427-431 (lines=5) @@
424
                }
425
                // If it turns out that the value from the list was NOT a valid reference to a table-record,
426
                // then we might still set it as a NO_TABLE value:
427
                if (!$isSet && $this->registerNonTableValues) {
428
                    $this->itemArray[$key]['id'] = $tempItemArray[$key];
429
                    $this->itemArray[$key]['table'] = '_NO_TABLE';
430
                    $this->nonTableArray[] = $tempItemArray[$key];
431
                }
432
            }
433
434
            // Skip if not dealing with IRRE in a CSV list on a workspace
@@ 589-593 (lines=5) @@
586
                $this->itemArray[$key]['id'] = $row[$uidForeign_field];
587
                $this->itemArray[$key]['table'] = $theTable;
588
                $this->tableArray[$theTable][] = $row[$uidForeign_field];
589
            } elseif ($this->registerNonTableValues) {
590
                $this->itemArray[$key]['id'] = $row[$uidForeign_field];
591
                $this->itemArray[$key]['table'] = '_NO_TABLE';
592
                $this->nonTableArray[] = $row[$uidForeign_field];
593
            }
594
            $key++;
595
        }
596
    }