Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1476-1481 (lines=6) @@
1473
    if ($query_result === true) {
1474
1475
      // "INSERT" || "REPLACE"
1476
      if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) {
1477
        $insert_id = (int)$this->insert_id();
1478
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1479
1480
        return $insert_id;
1481
      }
1482
1483
      // "UPDATE" || "DELETE"
1484
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
@@ 1484-1489 (lines=6) @@
1481
      }
1482
1483
      // "UPDATE" || "DELETE"
1484
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
1485
        $affected_rows = $this->affected_rows();
1486
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1487
1488
        return $affected_rows;
1489
      }
1490
1491
      // log the ? query
1492
      $this->_debug->logQuery($sql, $query_duration, 0);