Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/Prepare.php 2 locations

@@ 246-251 (lines=6) @@
243
    if ($result === true) {
244
245
      // "INSERT" || "REPLACE"
246
      if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $this->_sql)) {
247
        $insert_id = (int)$this->insert_id;
248
        $this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $insert_id);
249
250
        return $insert_id;
251
      }
252
253
      // "UPDATE" || "DELETE"
254
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) {
@@ 254-259 (lines=6) @@
251
      }
252
253
      // "UPDATE" || "DELETE"
254
      if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) {
255
        $affected_rows = (int)$this->affected_rows;
256
        $this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $affected_rows);
257
258
        return $affected_rows;
259
      }
260
261
      // "SELECT"
262
      if (preg_match('/^\s*"?(SELECT)\s+/i', $this->_sql)) {