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