Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
32 | { |
||
33 | $reader = $this->getCurrentModuleDirectoryReader(); |
||
34 | |||
35 | $finder = Finder::create(); |
||
36 | $finder |
||
37 | ->files() |
||
38 | ->in($reader->getAbsolutePath() . ltrim($input->getArgument('subpath'), '/')); |
||
39 | |||
40 | foreach ($finder as $file) { |
||
41 | /** @var $file SplFileInfo */ |
||
42 | $formattedRelativePath = $file->getRelativePath() == '' ? '' : $file->getRelativePath() . '/'; |
||
43 | |||
44 | $output->writeln( |
||
45 | '<info>' . $formattedRelativePath . '</info>' . '<comment>' . $file->getFilename() . '</comment>' |
||
46 | ); |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 |