Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1350-1355 (lines=6) @@
1347
    if ($query_result === true) {
1348
1349
      // "INSERT" || "REPLACE"
1350
      if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) {
1351
        $insert_id = (int)$this->insert_id();
1352
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1353
        return $insert_id;
1354
      }
1355
1356
      // "UPDATE" || "DELETE"
1357
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
1358
        $affected_rows = (int)$this->affected_rows();
@@ 1357-1362 (lines=6) @@
1354
      }
1355
1356
      // "UPDATE" || "DELETE"
1357
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
1358
        $affected_rows = (int)$this->affected_rows();
1359
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1360
        return $affected_rows;
1361
      }
1362
1363
      // log the ? query
1364
      $this->_debug->logQuery($sql, $query_duration, 0);
1365
      return true;