| Conditions | 4 |
| Paths | 8 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function getConnection() |
||
| 16 | { |
||
| 17 | $channelManager = $this->container->bound(ChannelManager::class) |
||
| 18 | ? $this->container->make(ChannelManager::class) |
||
| 19 | : null; |
||
| 20 | |||
| 21 | return $channelManager && method_exists($channelManager, 'getRedisClient') |
||
| 22 | ? $channelManager->getRedisClient() |
||
| 23 | : parent::getConnection(); |
||
| 24 | } |
||
| 26 |