| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 21.74% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class StatRealpathGetCommand extends AbstractCommand |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | 25 | protected function configure() |
|
| 26 | { |
||
| 27 | $this |
||
| 28 | 25 | ->setName('stat:realpath_get') |
|
| 29 | 25 | ->setDescription('Show summary information of realpath cache entries') |
|
| 30 | 25 | ->setHelp(''); |
|
| 31 | 25 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 37 | { |
||
| 38 | $info = $this->getCacheTool()->stat_realpath_get(); |
||
| 39 | |||
| 40 | $table = new Table($output); |
||
| 41 | $table |
||
| 42 | ->setHeaders([ |
||
| 43 | 'Path entry', |
||
| 44 | 'key', |
||
| 45 | 'is_dir', |
||
| 46 | 'realpath', |
||
| 47 | 'expires', |
||
| 48 | ]) |
||
| 49 | ->setRows($this->processFilelist($info)) |
||
| 50 | ; |
||
| 51 | |||
| 52 | $table->render(); |
||
| 53 | |||
| 54 | return 0; |
||
| 55 | } |
||
| 56 | |||
| 57 | protected function processFileList(array $cacheList) |
||
| 72 | } |
||
| 73 | } |
||
| 74 |