Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1601-1606 (lines=6) @@
1598
    if ($query_result === true) {
1599
1600
      // "INSERT" || "REPLACE"
1601
      if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) {
1602
        $insert_id = (int)$this->insert_id();
1603
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1604
1605
        return $insert_id;
1606
      }
1607
1608
      // "UPDATE" || "DELETE"
1609
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
@@ 1609-1614 (lines=6) @@
1606
      }
1607
1608
      // "UPDATE" || "DELETE"
1609
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
1610
        $affected_rows = $this->affected_rows();
1611
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1612
1613
        return $affected_rows;
1614
      }
1615
1616
      // log the ? query
1617
      $this->_debug->logQuery($sql, $query_duration, 0);