Code Duplication    Length = 4-7 lines in 2 locations

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

@@ 5694-5700 (lines=7) @@
5691
        $row = $this->recordInfoWithPermissionCheck($table, $id, 'show');
5692
5693
        // This checks if the record can be selected which is all that a copy action requires.
5694
        if ($row === false) {
5695
            $this->newlog(
5696
                'The record does not exist or you don\'t have correct permissions to make a new version (copy) of this record "' . $table . ':' . $id . '"',
5697
                1
5698
            );
5699
            return null;
5700
        }
5701
5702
        // Record must be online record
5703
        if ($row['pid'] < 0) {
@@ 5703-5706 (lines=4) @@
5700
        }
5701
5702
        // Record must be online record
5703
        if ($row['pid'] < 0) {
5704
            $this->newlog('Record "' . $table . ':' . $id . '" you wanted to versionize was already a version in archive (pid=-1)!', 1);
5705
            return null;
5706
        }
5707
5708
        // Record must not be placeholder for moving.
5709
        if (VersionState::cast($row['t3ver_state'])->equals(VersionState::MOVE_PLACEHOLDER)) {