| Conditions | 2 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 16 | public function call() | ||
| 17 |     { | ||
| 18 | $builder = $this->getBuilder(); | ||
| 19 | |||
| 20 |         $name = $this->getParam('name', null); | ||
| 21 | |||
| 22 |         try { | ||
| 23 | RedisFacade::connection($name); | ||
| 24 | RedisFacade::ping(); | ||
| 25 |         } catch (\Exception $e) { | ||
| 26 |             $builder->down()->withData("error", "Could not open connection to server - " . $e->getMessage()); | ||
| 27 | } | ||
| 28 | |||
| 29 | return $builder->build(); | ||
| 30 | } | ||
| 32 |