Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function getMigrationFiles($paths) |
||
19 | { |
||
20 | return Collection::make($paths)->flatMap(function ($path) { |
||
21 | return Str::endsWith($path, '.php') ? [$path] : $this->findMigrationFiles($path); |
||
22 | })->filter()->values()->keyBy(function ($file) { |
||
23 | return $this->getMigrationName($file); |
||
24 | })->sortBy(function ($file, $key) { |
||
25 | return $key; |
||
26 | })->all(); |
||
27 | } |
||
41 |