Code Duplication    Length = 6-6 lines in 2 locations

src/voku/db/Prepare.php 2 locations

@@ 206-211 (lines=6) @@
203
        if ($result === true) {
204
205
            // "INSERT" || "REPLACE"
206
            if (\preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $this->_sql)) {
207
                $insert_id = (int) $this->insert_id;
208
                $this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $insert_id);
209
210
                return $insert_id;
211
            }
212
213
            // "UPDATE" || "DELETE"
214
            if (\preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) {
@@ 214-219 (lines=6) @@
211
            }
212
213
            // "UPDATE" || "DELETE"
214
            if (\preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) {
215
                $affected_rows = (int) $this->affected_rows;
216
                $this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $affected_rows);
217
218
                return $affected_rows;
219
            }
220
221
            // "SELECT"
222
            if (\preg_match('/^\s*"?(SELECT)\s+/i', $this->_sql)) {