Code Duplication    Length = 3-3 lines in 5 locations

lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php 5 locations

@@ 150-152 (lines=3) @@
147
            }
148
        }
149
150
        if (! $this->_stmt->execute()) {
151
            throw new MysqliException($this->_stmt->error, $this->_stmt->sqlstate, $this->_stmt->errno);
152
        }
153
154
        if ($this->_columnNames === null) {
155
            $meta = $this->_stmt->result_metadata();
@@ 197-199 (lines=3) @@
194
                $refs[$key] =& $value;
195
            }
196
197
            if (! $this->_stmt->bind_result(...$refs)) {
198
                throw new MysqliException($this->_stmt->error, $this->_stmt->sqlstate, $this->_stmt->errno);
199
            }
200
        }
201
202
        $this->result = true;
@@ 239-241 (lines=3) @@
236
            $values[$parameter] = $value;
237
        }
238
239
        if (! $this->_stmt->bind_param($types, ...$values)) {
240
            throw new MysqliException($this->_stmt->error, $this->_stmt->sqlstate, $this->_stmt->errno);
241
        }
242
243
        $this->sendLongData($streams);
244
    }
@@ 263-265 (lines=3) @@
260
                    throw new MysqliException("Failed reading the stream resource for parameter offset ${paramNr}.");
261
                }
262
263
                if (! $this->_stmt->send_long_data($paramNr - 1, $chunk)) {
264
                    throw new MysqliException($this->_stmt->error, $this->_stmt->sqlstate, $this->_stmt->errno);
265
                }
266
            }
267
        }
268
    }
@@ 331-333 (lines=3) @@
328
            return false;
329
        }
330
331
        if ($values === false) {
332
            throw new MysqliException($this->_stmt->error, $this->_stmt->sqlstate, $this->_stmt->errno);
333
        }
334
335
        if ($fetchMode === FetchMode::NUMERIC) {
336
            return $values;