Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
29 | public function find(ConfigurationInterface $configuration) |
||
30 | { |
||
31 | $finder = Finder::create() |
||
32 | ->in($this->getTargetDirectories($configuration)) |
||
33 | ->name('*.html') |
||
34 | ->ignoreDotFiles(true) |
||
35 | ->files() |
||
36 | ->sort(function (SplFileInfo $a, SplFileInfo $b) { |
||
37 | return strcmp($a->getRelativePathname(), $b->getRelativePathname()); |
||
38 | }); |
||
39 | |||
40 | return iterator_to_array($finder->getIterator()); |
||
41 | } |
||
42 | |||
62 |