| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | $this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-videoable'); |
||
| 19 | |||
| 20 | if ($this->app->runningInConsole()) { |
||
| 21 | if (! class_exists('CreateVideosTable')) { |
||
| 22 | $timestamp = date('Y_m_d_His', time()); |
||
| 23 | $this->publishes([ |
||
| 24 | __DIR__ . '/../database/migrations/create_video_table.php.stub' => $this->app->databasePath() . '/migrations/' . $timestamp . '_create_videos_table.php', |
||
|
|
|||
| 25 | ], 'migrations'); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->publishes([ |
||
| 29 | __DIR__.'/../config/laravel-videoable.php' => config_path('laravel-videoable.php'), |
||
| 30 | ], 'config'); |
||
| 31 | |||
| 32 | $this->publishes([ |
||
| 33 | __DIR__ . '/../resources/views' => base_path('resources/views/vendor/laravel-videoable'), |
||
| 34 | ], 'views'); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.