Code Duplication    Length = 4-7 lines in 3 locations

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

@@ 1618-1624 (lines=7) @@
1615
                $onlyAllowedTables = isset($GLOBALS['PAGES_TYPES'][$value]['onlyAllowedTables']) ? $GLOBALS['PAGES_TYPES'][$value]['onlyAllowedTables'] : $GLOBALS['PAGES_TYPES']['default']['onlyAllowedTables'];
1616
                if ($onlyAllowedTables) {
1617
                    $theWrongTables = $this->doesPageHaveUnallowedTables($id, $value);
1618
                    if ($theWrongTables) {
1619
                        if ($this->enableLogging) {
1620
                            $propArr = $this->getRecordProperties($table, $id);
1621
                            $this->log($table, $id, 5, 0, 1, '\'doktype\' of page \'%s\' could not be changed because the page contains records from disallowed tables; %s', 2, [$propArr['header'], $theWrongTables], $propArr['event_pid']);
1622
                        }
1623
                        return $res;
1624
                    }
1625
                }
1626
            }
1627
        }
@@ 7193-7196 (lines=4) @@
7190
                    $this->getRecordHistoryStore()->addRecord($table, $id, $newRow);
7191
7192
                    if ($newVersion) {
7193
                        if ($this->enableLogging) {
7194
                            $propArr = $this->getRecordPropertiesFromRow($table, $newRow);
7195
                            $this->log($table, $id, 1, 0, 0, 'New version created of table \'%s\', uid \'%s\'. UID of new version is \'%s\'', 10, [$table, $fieldArray['t3ver_oid'], $id], $propArr['event_pid'], $NEW_id);
7196
                        }
7197
                    } else {
7198
                        if ($this->enableLogging) {
7199
                            $propArr = $this->getRecordPropertiesFromRow($table, $newRow);
@@ 7455-7459 (lines=5) @@
7452
                }
7453
                return ['pid' => $row['pid'], 'sortNumber' => $sortNumber];
7454
            }
7455
            if ($this->enableLogging) {
7456
                $propArr = $this->getRecordProperties($table, $uid);
7457
                // OK, don't insert $propArr['event_pid'] here...
7458
                $this->log($table, $uid, 4, 0, 1, 'Attempt to move record \'%s\' (%s) to after a non-existing record (uid=%s)', 1, [$propArr['header'], $table . ':' . $uid, abs($pid)], $propArr['pid']);
7459
            }
7460
            // There MUST be a page or else this cannot work
7461
            return false;
7462
        }