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