| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | }); |
|
| 69 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.