Code Duplication    Length = 6-9 lines in 2 locations

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

@@ 7090-7095 (lines=6) @@
7087
                        $historyEntryId = $this->getRecordHistoryStore()->modifyRecord($table, $id, $this->historyRecords[$table . ':' . $id]);
7088
                    }
7089
                    if ($this->enableLogging) {
7090
                        if ($this->checkStoredRecords) {
7091
                            $newRow = $this->checkStoredRecord($table, $id, $fieldArray, 2);
7092
                        } else {
7093
                            $newRow = $fieldArray;
7094
                            $newRow['uid'] = $id;
7095
                        }
7096
                        // Set log entry:
7097
                        $propArr = $this->getRecordPropertiesFromRow($table, $newRow);
7098
                        $this->log($table, $id, 2, $propArr['pid'], 0, 'Record \'%s\' (%s) was updated.' . ($propArr['_ORIG_pid'] == -1 ? ' (Offline version).' : ' (Online).'), 10, [$propArr['header'], $table . ':' . $id, 'history' => $historyEntryId], $propArr['event_pid']);
@@ 7177-7185 (lines=9) @@
7174
                        $this->substNEWwithIDs_table[$NEW_id] = $table;
7175
                    }
7176
                    $newRow = [];
7177
                    if ($this->enableLogging) {
7178
                        // Checking the record is properly saved if configured
7179
                        if ($this->checkStoredRecords) {
7180
                            $newRow = $this->checkStoredRecord($table, $id, $fieldArray, 1);
7181
                        } else {
7182
                            $newRow = $fieldArray;
7183
                            $newRow['uid'] = $id;
7184
                        }
7185
                    }
7186
                    // Update reference index:
7187
                    $this->updateRefIndex($table, $id);
7188