Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

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