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