Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
51 | private function createMigration($contentType): string |
||
52 | { |
||
53 | $table = $this->tableName($contentType['sys']['id']); |
||
54 | |||
55 | $stubPath = __DIR__ . '/stubs/migration.stub'; |
||
56 | $destPath = database_path('migrations/' . Carbon::now()->format('Y_m_d_His') . '_create_' . $table . '_table.php'); |
||
57 | |||
58 | return static::writeStub($stubPath, $destPath, [ |
||
59 | 'class' => Str::studly($table), |
||
60 | 'table' => $table |
||
61 | ]); |
||
64 |