Code Duplication    Length = 7-7 lines in 2 locations

typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php 2 locations

@@ 1116-1122 (lines=7) @@
1113
        $versionRelations->setUseLiveReferenceIds(false);
1114
        $versionRelations->start('', $foreignTable, '', $versionData['uid'], $tableName, $configuration);
1115
        // Update relations for both (workspace/versioning) sites:
1116
        if (count($liveRelations->itemArray)) {
1117
            $dataHandler->addRemapAction(
1118
                $tableName,
1119
                $liveData['uid'],
1120
                [$this, 'updateInlineForeignFieldSorting'],
1121
                [$tableName, $liveData['uid'], $foreignTable, $liveRelations->tableArray[$foreignTable], $configuration, $dataHandler->BE_USER->workspace]
1122
            );
1123
        }
1124
        if (count($versionRelations->itemArray)) {
1125
            $dataHandler->addRemapAction(
@@ 1124-1130 (lines=7) @@
1121
                [$tableName, $liveData['uid'], $foreignTable, $liveRelations->tableArray[$foreignTable], $configuration, $dataHandler->BE_USER->workspace]
1122
            );
1123
        }
1124
        if (count($versionRelations->itemArray)) {
1125
            $dataHandler->addRemapAction(
1126
                $tableName,
1127
                $liveData['uid'],
1128
                [$this, 'updateInlineForeignFieldSorting'],
1129
                [$tableName, $liveData['uid'], $foreignTable, $versionRelations->tableArray[$foreignTable], $configuration, 0]
1130
            );
1131
        }
1132
    }
1133