| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 10 |
| Ratio | 71.43 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 1 | public function __invoke(array $options) |
|
| 20 | { |
||
| 21 | 1 | $token = (string) ($options['token'] ?? ''); |
|
| 22 | 1 | $useSSL = (bool) ($options['useSSL'] ?? true); |
|
| 23 | 1 | $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 24 | 1 | $bubble = (bool) ($options['bubble'] ?? true); |
|
| 25 | |||
| 26 | 1 | return new LogEntriesHandler( |
|
| 27 | 1 | $token, |
|
| 28 | 1 | $useSSL, |
|
| 29 | 1 | $level, |
|
| 30 | 1 | $bubble |
|
| 31 | ); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |