Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4.125 |
Changes | 0 |
1 | <?php |
||
30 | 1 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
31 | { |
||
32 | 1 | if (!$input->getOption('force')) { |
|
33 | $helper = $this->getHelper('question'); /** @var \Symfony\Component\Console\Helper\QuestionHelper $helper */ |
||
34 | $question = new ConfirmationQuestion('Do you want to set all tasks to "waiting" status? (y/f) ', false); |
||
35 | if (!$helper->ask($input, $output, $question)) { |
||
36 | $output->writeln('Canceled'); |
||
37 | return 0; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | 1 | $this->queue->restore(); |
|
42 | |||
43 | 1 | $this->formatInfoSection('Queue restored', $output); |
|
44 | |||
45 | 1 | return 0; |
|
46 | } |
||
48 |