Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1467-1472 (lines=6) @@
1464
    if ($query_result === true) {
1465
1466
      // "INSERT" || "REPLACE"
1467
      if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) {
1468
        $insert_id = (int)$this->insert_id();
1469
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1470
1471
        return $insert_id;
1472
      }
1473
1474
      // "UPDATE" || "DELETE"
1475
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
@@ 1475-1480 (lines=6) @@
1472
      }
1473
1474
      // "UPDATE" || "DELETE"
1475
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
1476
        $affected_rows = (int)$this->affected_rows();
1477
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1478
1479
        return $affected_rows;
1480
      }
1481
1482
      // log the ? query
1483
      $this->_debug->logQuery($sql, $query_duration, 0);