Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
28 | 2 | public function deliver(MessageInterface $message, callable $next): void |
|
29 | { |
||
30 | 2 | $this->enqueue($message, $next); |
|
31 | |||
32 | 2 | if ($this->executing) { |
|
33 | 1 | return; |
|
34 | } |
||
35 | |||
36 | try { |
||
37 | 2 | $this->executing = true; |
|
38 | 2 | $this->processQueue(); |
|
39 | 1 | } catch (Exception $e) { |
|
40 | 1 | $this->queue = []; |
|
41 | 1 | throw $e; |
|
42 | 1 | } finally { |
|
43 | 2 | $this->executing = false; |
|
44 | } |
||
68 |