Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

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