| Conditions | 3 |
| Paths | 3 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 3 | public function notify(MessageInterface $event): void |
|
| 21 | { |
||
| 22 | 3 | foreach ($this->listenerProvider->getListenersForEvent($event) as $listener) { |
|
| 23 | try { |
||
| 24 | 3 | call_user_func($listener, clone$event); |
|
| 25 | 3 | } catch (\Exception $e) { |
|
| 26 | // just prevent this exception from affecting the other messages by catching it quietly |
||
| 31 |