| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 4 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | 4 | public function findFiles(string $path, ?array $validExtensions = null, bool $recursive = true): array  | 
            |
| 32 |     { | 
            ||
| 33 | 4 | $finder = $this->getFinder($path, $validExtensions);  | 
            |
| 34 | 3 | ||
| 35 |         if (!$recursive) { | 
            ||
| 36 |             $finder->depth('== 0'); | 
            ||
| 37 | 4 | }  | 
            |
| 38 | |||
| 39 | return iterator_to_array($finder->getIterator());  | 
            ||
| 40 | }  | 
            ||
| 42 |