| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 3 | public function dispatch(object $event): object |
|
| 25 | { |
||
| 26 | 3 | $listeners = $this->listenerProvider->getListenersForEvent($event); |
|
| 27 | 3 | foreach ($listeners as $listener) { |
|
| 28 | 3 | if ($event->isPropagationStopped()) { |
|
| 29 | 1 | return $event; |
|
| 30 | } |
||
| 31 | 2 | $listener($event); |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | return $event; |
|
| 35 | } |
||
| 37 |