Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
35 | protected function execute(InputInterface $input, OutputInterface $output) |
||
36 | { |
||
37 | $this->ensureExtensionLoaded('apcu'); |
||
38 | |||
39 | $regexp = $input->getArgument('regexp'); |
||
40 | |||
41 | $success = $this->getCacheTool()->apcu_regexp_delete($regexp); |
||
42 | |||
43 | if ($output->isVerbose()) { |
||
44 | if ($success) { |
||
45 | $output->writeln("<comment>APC keys by regexp <info>{$regexp}</info> was deleted</comment>"); |
||
46 | } else { |
||
47 | $output->writeln("<comment>APC keys by regexp <info>{$regexp}</info> could not be deleted.</comment>"); |
||
48 | } |
||
49 | } |
||
50 | |||
51 | return 1; |
||
52 | } |
||
53 | } |
||
54 |