Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 498-503 (lines=6) @@
495
    if ($query_result === true) {
496
497
      // "INSERT" || "REPLACE"
498
      if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $sql)) {
499
        $insert_id = (int)$this->insert_id();
500
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
501
502
        return $insert_id;
503
      }
504
505
      // "UPDATE" || "DELETE"
506
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
@@ 506-511 (lines=6) @@
503
      }
504
505
      // "UPDATE" || "DELETE"
506
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
507
        $affected_rows = (int)$this->affected_rows();
508
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
509
510
        return $affected_rows;
511
      }
512
513
      // log the ? query
514
      $this->_debug->logQuery($sql, $query_duration, 0);