| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 35 | { |
||
| 36 | 1 | $this->ensureExtensionLoaded('Zend OPcache'); |
|
| 37 | |||
| 38 | 1 | $info = $this->getCacheTool()->opcache_get_configuration(); |
|
| 39 | |||
| 40 | 1 | $output->writeln("<info>{$info['version']['opcache_product_name']}</info> <comment>{$info['version']['version']}</comment>"); |
|
| 41 | |||
| 42 | 1 | $table = new Table($output); |
|
| 43 | $table |
||
| 44 | 1 | ->setHeaders(['Directive', 'Value']) |
|
| 45 | 1 | ->setRows($this->processDirectives($info['directives'])) |
|
| 46 | ; |
||
| 47 | |||
| 48 | 1 | $table->render(); |
|
| 49 | 1 | } |
|
| 50 | |||
| 62 |