Code Duplication    Length = 3-4 lines in 3 locations

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

@@ 4395-4398 (lines=4) @@
4392
            return;
4393
        }
4394
4395
        if (!$mayMoveAccess) {
4396
            $this->log($table, $uid, 4, 0, 1, 'Attempt to move record \'%s\' (%s) without having permissions to do so.', 14, [$propArr['header'], $table . ':' . $uid], $propArr['event_pid']);
4397
            return;
4398
        }
4399
4400
        if (!$mayInsertAccess) {
4401
            $this->log($table, $uid, 4, 0, 1, 'Attempt to move record \'%s\' (%s) without having permissions to insert.', 14, [$propArr['header'], $table . ':' . $uid], $propArr['event_pid']);
@@ 4400-4403 (lines=4) @@
4397
            return;
4398
        }
4399
4400
        if (!$mayInsertAccess) {
4401
            $this->log($table, $uid, 4, 0, 1, 'Attempt to move record \'%s\' (%s) without having permissions to insert.', 14, [$propArr['header'], $table . ':' . $uid], $propArr['event_pid']);
4402
            return;
4403
        }
4404
4405
        $recordWasMoved = false;
4406
        // Move the record via a hook, used e.g. for versioning
@@ 4580-4582 (lines=3) @@
4577
                    $destPropArr = $this->getRecordProperties('pages', $destPid);
4578
                    $this->log($table, $uid, 4, 0, 1, 'Attempt to move page \'%s\' (%s) to inside of its own rootline (at page \'%s\' (%s))', 10, [$propArr['header'], $uid, $destPropArr['header'], $destPid], $propArr['pid']);
4579
                }
4580
            } else {
4581
                $this->log($table, $uid, 4, 0, 1, 'Attempt to move record \'%s\' (%s) to after another record, although the table has no sorting row.', 13, [$propArr['header'], $table . ':' . $uid], $propArr['event_pid']);
4582
            }
4583
        }
4584
    }
4585