Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

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