Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 1225-1230 (lines=6) @@
1222
    if ($query_result === true) {
1223
1224
      // "INSERT" || "REPLACE"
1225
      if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $sql)) {
1226
        $insert_id = (int)$this->insert_id();
1227
        $this->_debug->logQuery($sql, $query_duration, $insert_id);
1228
1229
        return $insert_id;
1230
      }
1231
1232
      // "UPDATE" || "DELETE"
1233
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
@@ 1233-1238 (lines=6) @@
1230
      }
1231
1232
      // "UPDATE" || "DELETE"
1233
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) {
1234
        $affected_rows = (int)$this->affected_rows();
1235
        $this->_debug->logQuery($sql, $query_duration, $affected_rows);
1236
1237
        return $affected_rows;
1238
      }
1239
1240
      // log the ? query
1241
      $this->_debug->logQuery($sql, $query_duration, 0);