| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 72 | public function publishMigrations(): void |
|
| 43 | { |
||
| 44 | 72 | if (! class_exists('CreateAssetTable')) { |
|
| 45 | 1 | $this->publishes([ |
|
| 46 | 1 | __DIR__.'/../database/migrations/create_asset_table.php' => database_path('migrations/'.date('Y_m_d_His', |
|
|
|
|||
| 47 | 1 | time()).'_create_asset_table.php'), |
|
| 48 | 1 | ], 'migrations'); |
|
| 49 | } |
||
| 50 | |||
| 51 | 72 | if (! class_exists('CreateMediaTable')) { |
|
| 52 | 1 | $this->publishes([ |
|
| 53 | 1 | __DIR__.'/../../../spatie/laravel-medialibrary/database/migrations/create_media_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_media_table.php'), |
|
| 54 | 1 | ], 'migrations'); |
|
| 55 | } |
||
| 58 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.