| Conditions | 2 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 37 | protected function doHealthCheck(HealthBuilder $builder) |
||
| 38 | { |
||
| 39 | try { |
||
| 40 | $this->connection->reconnect(); |
||
| 41 | $serverProperties = $this->connection->getServerProperties(); |
||
| 42 | $builder->withDetail('version', $serverProperties['version'][1]); |
||
| 43 | } catch (\Exception $e) { |
||
| 44 | $builder->down($e); |
||
| 45 | |||
| 46 | return; |
||
| 47 | } |
||
| 48 | |||
| 49 | $builder->up(); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |