Conditions | 7 |
Paths | 5 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 56 |
Changes | 0 |
1 | <?php |
||
36 | private function recursiveScan (string $dir) { |
||
37 | $files = scandir($dir); |
||
38 | foreach ($files as $filename) { |
||
39 | if ($filename !== "." && $filename !== "..") { |
||
40 | $file_path = $dir . "/" . $filename; |
||
41 | if (is_file($file_path) && $this->isFileOk($file_path)) { |
||
42 | $this->files[] = $file_path; |
||
43 | } else if (is_dir($file_path)) { |
||
44 | $this->recursiveScan($file_path); |
||
45 | } |
||
64 | } |