| Total Complexity | 6 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 96.3% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Bootstrap any application services. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | 13 | public function boot() |
|
| 17 | { |
||
| 18 | 13 | if ($this->app->runningInConsole()) { |
|
| 19 | 13 | $this->publishes([ |
|
| 20 | 13 | __DIR__ . '/../config/nova-chunked.php' => config_path('nova-chunked.php'), |
|
| 21 | 13 | ], 'config'); |
|
| 22 | |||
| 23 | |||
| 24 | 13 | $this->commands([ |
|
| 25 | 13 | ]); |
|
| 26 | } |
||
| 27 | |||
| 28 | 13 | $this->app->booted(function () { |
|
| 29 | 13 | $this->routes(); |
|
| 30 | 13 | }); |
|
| 31 | |||
| 32 | 13 | Nova::serving(function (ServingNova $event) { |
|
|
|
|||
| 33 | 2 | Nova::script('chunked-video', __DIR__.'/../dist/js/field.js'); |
|
| 34 | 2 | Nova::style('chunked-video', __DIR__.'/../dist/css/field.css'); |
|
| 35 | 13 | }); |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Register any application services. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | 13 | public function register() |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Register the card's routes. |
||
| 50 | */ |
||
| 51 | 13 | protected function routes() |
|
| 65 | } |
||
| 66 | 13 | }); |
|
| 69 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.