Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | protected static function client(string $queue) |
||
39 | { |
||
40 | if (self::$redis[$queue]) { |
||
41 | return self::$redis[$queue]; |
||
42 | } |
||
43 | |||
44 | if (self::$redis['default']) { |
||
45 | return self::$redis['default']; |
||
46 | } |
||
47 | |||
48 | throw new QueueWithoutConnectionException("Queue {$queue} without redis connection."); |
||
49 | } |
||
51 |