Code Duplication    Length = 3-3 lines in 3 locations

typo3/sysext/core/Classes/DataHandling/DataHandler.php 3 locations

@@ 3502-3504 (lines=3) @@
3499
            }
3500
        }
3501
        // Overriding values:
3502
        if ($GLOBALS['TCA'][$table]['ctrl']['editlock']) {
3503
            $data[$table][$theNewID][$GLOBALS['TCA'][$table]['ctrl']['editlock']] = 0;
3504
        }
3505
        // Setting original UID:
3506
        if ($GLOBALS['TCA'][$table]['ctrl']['origUid']) {
3507
            $data[$table][$theNewID][$GLOBALS['TCA'][$table]['ctrl']['origUid']] = $uid;
@@ 3506-3508 (lines=3) @@
3503
            $data[$table][$theNewID][$GLOBALS['TCA'][$table]['ctrl']['editlock']] = 0;
3504
        }
3505
        // Setting original UID:
3506
        if ($GLOBALS['TCA'][$table]['ctrl']['origUid']) {
3507
            $data[$table][$theNewID][$GLOBALS['TCA'][$table]['ctrl']['origUid']] = $uid;
3508
        }
3509
        // Do the copy by simply submitting the array through DataHandler:
3510
        /** @var $copyTCE DataHandler */
3511
        $copyTCE = $this->getLocalTCE();
@@ 5749-5751 (lines=3) @@
5746
            't3ver_stage' => 0,
5747
            't3ver_tstamp' => 0
5748
        ];
5749
        if ($GLOBALS['TCA'][$table]['ctrl']['editlock']) {
5750
            $overrideArray[$GLOBALS['TCA'][$table]['ctrl']['editlock']] = 0;
5751
        }
5752
        // Checking if the record already has a version in the current workspace of the backend user
5753
        if ($this->BE_USER->workspace !== 0) {
5754
            // Look for version already in workspace: