| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 20 | public function dispatch(object $event): object |
||
| 21 | { |
||
| 22 | if ($this->isPropagationStopped($event)) { |
||
| 23 | return $event; |
||
| 24 | } |
||
| 25 | |||
| 26 | foreach ($this->getListenerProvider()->getListenersForEvent($event) as $listener) { |
||
| 27 | $listener($event); |
||
| 28 | |||
| 29 | if ($this->isPropagationStopped($event)) { |
||
| 30 | break; |
||
| 31 | 8 | } |
|
| 32 | } |
||
| 33 | 8 | ||
| 34 | 1 | return $event; |
|
| 35 | } |
||
| 45 |