| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 1 | public function __invoke(array $options) |
|
| 17 | { |
||
| 18 | 1 | $client = $this->getClient($options); |
|
| 19 | 1 | $key = (string) ($options['key'] ?? ''); |
|
| 20 | 1 | $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | 1 | $bubble = (boolean) ($options['bubble'] ?? true); |
|
| 22 | 1 | $capSize = (int) ($options['capSize'] ?? 0); |
|
| 23 | |||
| 24 | 1 | return new RedisHandler( |
|
| 25 | 1 | $client, |
|
| 26 | 1 | $key, |
|
| 27 | 1 | $level, |
|
| 28 | 1 | $bubble, |
|
| 29 | 1 | $capSize |
|
| 30 | ); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |