Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
41 | 1 | public function getFiles(Dsn $dsn, array $paths, array $ignore, array $extensions): array |
|
42 | { |
||
43 | 1 | $specs = $this->specificationFactory->create($paths, $ignore, $extensions); |
|
44 | |||
45 | 1 | $fileSystem = $this->flySystemFactory->create($dsn); |
|
46 | |||
47 | 1 | $files = []; |
|
48 | |||
49 | 1 | foreach ($fileSystem->find($specs) as $file) { |
|
50 | 1 | $files[] = new FlySystemFile($fileSystem, $file['path']); |
|
51 | } |
||
52 | |||
53 | 1 | return $files; |
|
54 | } |
||
55 | } |
||
56 |