Conditions | 2 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 2 | protected function handleForManager( |
|
15 | EntityManagerInterface $entityManager, |
||
16 | Envelope $envelope, |
||
17 | StackInterface $stack |
||
18 | ): Envelope { |
||
19 | try { |
||
20 | 2 | return $stack->next()->handle($envelope, $stack); |
|
21 | } finally { |
||
22 | 2 | if (null !== $envelope->last(ReceivedStamp::class)) { |
|
23 | 2 | $entityManager->clear(); |
|
24 | } |
||
28 |