Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1367-1372 (lines=6) @@
1364
    if ($query_result === true) {
1365
1366
      // "INSERT" || "REPLACE"
1367
      if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) {
1368
        $insert_id = (int)$this->insert_id();
1369
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1370
1371
        return $insert_id;
1372
      }
1373
1374
      // "UPDATE" || "DELETE"
1375
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
@@ 1375-1380 (lines=6) @@
1372
      }
1373
1374
      // "UPDATE" || "DELETE"
1375
      if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) {
1376
        $affected_rows = (int)$this->affected_rows();
1377
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1378
1379
        return $affected_rows;
1380
      }
1381
1382
      // log the ? query
1383
      $this->_debug->logQuery($sql, $query_duration, 0);