| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | protected function execute(InputInterface $input, OutputInterface $output): void |
||
| 23 | { |
||
| 24 | $queue = $this->createConfigFactory($input, $output)->createQueue(); |
||
| 25 | $count = $input->getArgument('count'); |
||
| 26 | |||
| 27 | $affected = $queue->kick($count); |
||
|
|
|||
| 28 | |||
| 29 | $output->writeln(sprintf( |
||
| 30 | '<comment>%d</comment> tasks were successfully kicked back to <info>%s</info>.', |
||
| 31 | $affected, |
||
| 32 | $queue->getName() |
||
| 33 | )); |
||
| 36 |