Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
19 | 6 | public function find(): array |
|
20 | { |
||
21 | 6 | $finder = Finder::create()->files(); |
|
22 | 6 | foreach ($this->extensions as $extension) { |
|
23 | 6 | $finder->name("*.$extension"); |
|
24 | } |
||
25 | 6 | $finder->in($this->dirs); |
|
26 | |||
27 | 6 | $files = []; |
|
28 | 6 | foreach ($finder as $file) { |
|
29 | 6 | $files[] = (string) $file; |
|
30 | } |
||
31 | 6 | return $files; |
|
32 | } |
||
34 |