Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
16 | public function getPhpFiles(string $path): array |
||
17 | { |
||
18 | $directoryIterator = new RecursiveDirectoryIterator($path); |
||
19 | $files = []; |
||
20 | foreach (new RecursiveIteratorIterator($directoryIterator) as $file) { |
||
21 | if ($file->getExtension() !== 'php') { |
||
22 | continue; |
||
23 | } |
||
24 | $files[] = $file->getRealPath(); |
||
25 | } |
||
26 | return $files; |
||
27 | } |
||
28 | } |
||
29 |