Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

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