| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, \Closure $callback) |
||
| 31 | { |
||
| 32 | if ($this->causedByLostConnection($e->getPrevious()) || Str::contains($e->getMessage(), 'is closed')) { |
||
| 33 | $this->reconnect(); |
||
| 34 | |||
| 35 | return $this->runQueryCallback($query, $bindings, $callback); |
||
| 36 | } |
||
| 37 | |||
| 38 | throw $e; |
||
| 39 | } |
||
| 40 | } |