| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public function dispatch(object $event): object |
||
| 31 | { |
||
| 32 | 1 | $listeners = $this->listenerProvider->getListenersForEvent($event); |
|
| 33 | 1 | foreach ($listeners as $listener) { |
|
| 34 | 1 | if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { |
|
| 35 | 1 | break; |
|
| 36 | } |
||
| 37 | 1 | $listener($event); |
|
| 38 | } |
||
| 39 | 1 | return $event; |
|
|
1 ignored issue
–
show
|
|||
| 40 | } |
||
| 42 |