Conditions | 1 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
29 | 2 | public function __invoke(Environment $env, Arguments $arguments, Options $options): void |
|
30 | { |
||
31 | 2 | $queue = $arguments->get('queue'); |
|
32 | 2 | $consume = $this->consumers->get($queue); |
|
33 | |||
34 | try { |
||
35 | $this |
||
36 | 2 | ->client |
|
37 | 2 | ->channel() |
|
38 | 2 | ->basic() |
|
39 | 2 | ->get(new Basic\Get($queue))($consume); |
|
40 | 1 | } finally { |
|
41 | 2 | $this->client->close(); |
|
42 | } |
||
54 |