Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 2 | public function dispatch(object $event) |
|
21 | { |
||
22 | 2 | foreach ($this->dispatchers as $dispatcher) { |
|
23 | 2 | if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { |
|
24 | 1 | return $event; |
|
25 | } |
||
26 | 2 | $event = $dispatcher->dispatch($event); |
|
27 | } |
||
28 | |||
29 | 1 | return $event; |
|
30 | } |
||
37 |