Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
53 | 9 | protected function getMigrationFileName(Filesystem $filesystem): string |
|
54 | { |
||
55 | 9 | $timestamp = date('Y_m_d_His'); |
|
56 | |||
57 | 9 | return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR) |
|
58 | ->flatMap(function ($path) use ($filesystem) { |
||
59 | 9 | return $filesystem->glob($path.'*_create_translations_tables.php'); |
|
60 | 9 | }) |
|
61 | 9 | ->push($this->app->databasePath()."/migrations/{$timestamp}_create_translations_tables.php") |
|
62 | 9 | ->first(); |
|
63 | } |
||
64 | } |
||
65 |