| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 2 | public function handle(array $record): bool |
|
| 23 | { |
||
| 24 | 2 | $e = new LogEvent( |
|
| 25 | 2 | $record['datetime'], |
|
| 26 | 2 | $record['channel'], |
|
| 27 | 2 | \strtolower(Logger::getLevelName($record['level'])), |
|
| 28 | 2 | $record['message'], |
|
| 29 | 2 | $record['context'] |
|
| 30 | 2 | ); |
|
| 31 | |||
| 32 | 2 | foreach ($this->listenerRegistry->getListeners() as $listener) { |
|
| 33 | 2 | $listener($e); |
|
| 34 | } |
||
| 35 | |||
| 36 | 2 | return true; |
|
| 37 | } |
||
| 39 |