| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 93.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Bootstrap any application services. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | 9 | public function boot() |
|
| 17 | { |
||
| 18 | 9 | $this->app->booted(function () { |
|
| 19 | 9 | $this->routes(); |
|
| 20 | 9 | }); |
|
| 21 | |||
| 22 | 9 | Nova::serving(function (ServingNova $event) { |
|
|
|
|||
| 23 | 6 | Nova::script('entity-select-field', __DIR__ . '/../dist/js/field.js'); |
|
| 24 | 6 | Nova::style('entity-select-field', __DIR__ . '/../dist/css/field.css'); |
|
| 25 | 9 | }); |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Register the tool's routes. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | 9 | protected function routes() |
|
| 34 | { |
||
| 35 | 9 | if ($this->app->routesAreCached()) { |
|
| 36 | return; |
||
| 37 | } |
||
| 38 | |||
| 39 | 9 | Route::middleware(['nova']) |
|
| 40 | 9 | ->prefix('nova-vendor/nova-entity-select-field') |
|
| 41 | 9 | ->group(__DIR__.'/../routes/api.php'); |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Register any application services. |
||
| 46 | * |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | 9 | public function register() |
|
| 51 | // |
||
| 52 | 9 | } |
|
| 53 | } |
||
| 54 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.