| Total Complexity | 4 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 26.09% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class OpcacheCompileScriptCommand extends AbstractCommand |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | 24 | protected function configure() |
|
| 31 | 24 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 37 | { |
||
| 38 | $this->ensureExtensionLoaded('Zend OPcache'); |
||
| 39 | $path = $input->getArgument('path'); |
||
| 40 | $splFiles = array($path); |
||
| 41 | |||
| 42 | $table = new Table($output); |
||
| 43 | $table |
||
| 44 | ->setHeaders(array( |
||
| 45 | 'Compiled', |
||
| 46 | 'Filename' |
||
| 47 | )) |
||
| 48 | ->setRows($this->processFilelist($splFiles)) |
||
| 49 | ; |
||
| 50 | |||
| 51 | $table->render(); |
||
| 52 | |||
| 53 | return 0; |
||
| 54 | } |
||
| 55 | |||
| 56 | protected function processFileList($splFiles) |
||
| 68 | } |
||
| 69 | |||
| 71 |