Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
61 | #[\Override] |
||
62 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
63 | { |
||
64 | $file = (string) $input->getArgument('file'); |
||
65 | $contents = \is_file($file) |
||
66 | ? \file_get_contents($file) |
||
67 | : false; |
||
68 | |||
69 | if (false === $contents) { |
||
70 | $output->writeln('0'); |
||
71 | |||
72 | return 0; |
||
73 | } |
||
74 | |||
75 | $output->writeln((string) $this->assessor->assess($contents)); |
||
76 | |||
77 | return 0; |
||
78 | } |
||
80 |