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 |
||
15 | 2 | public function dispatch(object $event) |
|
16 | { |
||
17 | 2 | foreach ($this->dispatchers as $dispatcher) { |
|
18 | 2 | if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { |
|
19 | 1 | return $event; |
|
20 | } |
||
21 | 2 | $event = $dispatcher->dispatch($event); |
|
22 | } |
||
23 | |||
24 | 1 | return $event; |
|
25 | } |
||
32 |