Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
59 | protected function getMigrationFileName(Filesystem $filesystem): string |
||
60 | { |
||
61 | $timestamp = date('Y_m_d_His'); |
||
62 | |||
63 | return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR) |
||
64 | ->flatMap(function ($path) use ($filesystem) { |
||
65 | return $filesystem->glob($path.'*_create_robots_tables.php'); |
||
66 | })->push($this->app->databasePath()."/migrations/{$timestamp}_create_robots_tables.php") |
||
67 | ->first(); |
||
68 | } |
||
70 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.