| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | public function __invoke(array $options) |
|
| 14 | { |
||
| 15 | 1 | $ident = (string) ($options['ident'] ?? ''); |
|
| 16 | 1 | $facility = (int) ($options['facility'] ?? LOG_USER); |
|
| 17 | 1 | $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | 1 | $bubble = (bool) ($options['bubble'] ?? true); |
|
| 19 | 1 | $logOpts = (int) ($options['logOpts'] ?? LOG_PID); |
|
| 20 | |||
| 21 | 1 | return new SyslogHandler($ident, $facility, $level, $bubble, $logOpts); |
|
| 22 | } |
||
| 23 | } |
||
| 24 |