Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

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