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