Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
22 | 2 | public function dispatch(object $event): object |
|
23 | { |
||
24 | 2 | foreach ($this->listenerProvider->getListenersForEvent($event) as $listener) { |
|
25 | 2 | if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { |
|
26 | 1 | return $event; |
|
27 | } |
||
28 | 2 | $listener($event); |
|
29 | } |
||
30 | |||
31 | 1 | return $event; |
|
32 | } |
||
34 |