Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
14 | 5 | public function boot() |
|
15 | { |
||
16 | 5 | if ($this->app->runningInConsole()) { |
|
17 | 5 | if (!class_exists('CreateOpeningHoursTables')) { |
|
18 | 1 | $timestamp = date('Y_m_d_His', time()); |
|
19 | 1 | $this->publishes([__DIR__.'/../database/migrations/create_opening_hours_tables.php' => database_path('migrations/'.$timestamp.'_create_opening_hours_tables.php')], 'migrations'); |
|
|
|||
20 | } |
||
21 | 5 | $this->publishes([__DIR__.'/../config/openinghours.php' => config_path('webfactor/openinghours.php')], 'config'); |
|
22 | } |
||
23 | 5 | } |
|
24 | |||
34 | } |
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.