Conditions | 4 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4.128 |
Changes | 0 |
1 | <?php |
||
40 | 2 | public function runWorker(OutputInterface $output = null): void |
|
41 | { |
||
42 | 2 | foreach ($this->listenerCollection as $listener) { |
|
43 | 2 | if ($output !== null && $output->isDebug()) { |
|
44 | $output->writeln('Run listener for queue <info>' . $listener->getQueueName() . '</info>'); |
||
45 | } |
||
46 | 2 | $this->consumer->consumeQueries($listener); |
|
47 | } |
||
49 | } |