Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/Prepare.php 2 locations

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