Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.108 |
Changes | 0 |
1 | <?php |
||
43 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
44 | { |
||
45 | 2 | $purpose = $input->getOption('purpose'); |
|
46 | |||
47 | 2 | if ($input->getOption('before')) { |
|
48 | @trigger_error( |
||
|
|||
49 | 'The "before" option is deprecated since version 2.2 and will be removed in 3.0.', |
||
50 | E_USER_DEPRECATED |
||
51 | ); |
||
52 | } |
||
53 | |||
54 | 2 | $count = $this->archivist->archive($purpose); |
|
55 | |||
56 | 2 | $output->writeln( |
|
57 | 2 | sprintf('<info>Successfully archived <comment>%d</comment> security token(s).</info>', $count) |
|
58 | ); |
||
59 | 2 | } |
|
60 | } |
||
61 |
If you suppress an error, we recommend checking for the error condition explicitly: