Conditions | 4 |
Paths | 6 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
38 | 5 | public function invokeEvent(Event $event) |
|
39 | { |
||
40 | 5 | if ($this->handler) { |
|
41 | 4 | $this->handler->invokeEvent($event); |
|
42 | 4 | } |
|
43 | |||
44 | 5 | if ($event->getType() === EventType::FINALIZE) { |
|
45 | 4 | $bag = $event->getExecutor()->socketBag(); |
|
46 | 4 | $socket = $event->getSocket(); |
|
47 | 4 | if ($bag->hasSocket($socket)) { |
|
48 | 1 | $bag->removeSocket($socket); |
|
49 | 1 | } |
|
50 | 4 | } |
|
51 | 5 | } |
|
52 | } |
||
53 |