| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function getMigrationFiles($paths) |
||
| 33 | { |
||
| 34 | return collect($paths)->flatMap(function ($path) { |
||
| 35 | return collect((new Finder)->in([$path])->files())->map( function ($file) { |
||
| 36 | return $file->getPathname(); |
||
| 37 | })->all(); |
||
| 38 | })->filter()->sortBy(function ($file) { |
||
| 39 | return $this->getMigrationName($file); |
||
| 40 | })->values()->keyBy(function ($file) { |
||
| 41 | return $this->getMigrationName($file); |
||
| 42 | })->all(); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |