Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1281-1286 (lines=6) @@
1278
    if ($query_result === true) {
1279
1280
      // "INSERT" || "REPLACE"
1281
      if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $sql)) {
1282
        $insert_id = (int)$this->insert_id();
1283
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1284
1285
        return $insert_id;
1286
      }
1287
1288
      // "UPDATE" || "DELETE"
1289
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
@@ 1289-1294 (lines=6) @@
1286
      }
1287
1288
      // "UPDATE" || "DELETE"
1289
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
1290
        $affected_rows = (int)$this->affected_rows();
1291
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1292
1293
        return $affected_rows;
1294
      }
1295
1296
      // log the ? query
1297
      $this->_debug->logQuery($sql, $query_duration, 0);