| Conditions | 4 |
| Paths | 6 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 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 $success ? 0 : 1; |
||
| 52 | } |
||
| 54 |