Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 484-489 (lines=6) @@
481
    if ($query_result === true) {
482
483
      // "INSERT" || "REPLACE"
484
      if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $sql)) {
485
        $insert_id = (int)$this->insert_id();
486
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
487
488
        return $insert_id;
489
      }
490
491
      // "UPDATE" || "DELETE"
492
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
@@ 492-497 (lines=6) @@
489
      }
490
491
      // "UPDATE" || "DELETE"
492
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
493
        $affected_rows = (int)$this->affected_rows();
494
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
495
496
        return $affected_rows;
497
      }
498
499
      // log the ? query
500
      $this->_debug->logQuery($sql, $query_duration, 0);