Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1487-1492 (lines=6) @@
1484
    if ($query_result === true) {
1485
1486
      // "INSERT" || "REPLACE"
1487
      if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) {
1488
        $insert_id = (int)$this->insert_id();
1489
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1490
1491
        return $insert_id;
1492
      }
1493
1494
      // "UPDATE" || "DELETE"
1495
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
@@ 1495-1500 (lines=6) @@
1492
      }
1493
1494
      // "UPDATE" || "DELETE"
1495
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
1496
        $affected_rows = $this->affected_rows();
1497
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1498
1499
        return $affected_rows;
1500
      }
1501
1502
      // log the ? query
1503
      $this->_debug->logQuery($sql, $query_duration, 0);