| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 27 | protected function publishResources() |
|
| 33 | { |
||
| 34 | // Config |
||
| 35 | 27 | $this->publishes([ |
|
| 36 | 27 | __DIR__.'/../config/seoable.php' => config_path('seoable.php'), |
|
| 37 | 27 | ], 'config'); |
|
| 38 | |||
| 39 | // Database |
||
| 40 | 27 | if (! class_exists('CreateSeoTable')) { |
|
| 41 | // Publish the migration |
||
| 42 | 3 | $timestamp = date('Y_m_d_His', time()); |
|
| 43 | 3 | $this->publishes([ |
|
| 44 | 3 | __DIR__.'/../database/migrations/create_seo_table.php.stub' => $this->app->databasePath().'/migrations/'.$timestamp.'_create_seo_table.php', |
|
| 45 | 3 | ], 'migrations'); |
|
| 46 | } |
||
| 47 | |||
| 48 | 27 | $this->publishes([ |
|
| 49 | 27 | __DIR__.'/../resources/lang' => resource_path('lang/vendor/seoable'), |
|
| 50 | 27 | ], 'lang'); |
|
| 51 | 27 | } |
|
| 52 | } |
||
| 53 |