| Conditions | 7 |
| Paths | 6 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| 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)) { |
|
| 42 | 9 | if ($this->isFileOk($file_path)) { |
|
| 43 | 9 | $this->files[] = $file_path; |
|
| 44 | } |
||
| 45 | 9 | } else if (is_dir($file_path)) { |
|
| 46 | 9 | $this->recursiveScan($file_path); |
|
| 47 | } |
||
| 67 |