1 | <?php |
||
2 | |||
3 | namespace ThinkOne\NovaFlexibleContentFieldShortcode; |
||
4 | |||
5 | use Laravel\Nova\Events\ServingNova; |
||
6 | use Laravel\Nova\Nova; |
||
7 | |||
8 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Bootstrap any application services. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | 11 | public function boot() |
|
16 | { |
||
17 | 11 | if ($this->app->runningInConsole()) { |
|
18 | 11 | $this->publishes([ |
|
19 | 11 | __DIR__ . '/../config/nfc-shortcode.php' => config_path('nfc-shortcode.php'), |
|
20 | 11 | ], 'config'); |
|
21 | |||
22 | |||
23 | 11 | $this->commands([ |
|
24 | 11 | ]); |
|
25 | } |
||
26 | /** @psalm-suppress UndefinedClass **/ |
||
27 | 11 | if (class_exists(Nova::class)) { |
|
28 | 11 | Nova::serving(function (ServingNova $event) { |
|
0 ignored issues
–
show
|
|||
29 | Nova::script('nova-flexible-content-field-shortcode', __DIR__ . '/../dist/js/field.js'); |
||
30 | Nova::style('nova-flexible-content-field-shortcode', __DIR__ . '/../dist/css/field.css'); |
||
31 | 11 | }); |
|
32 | } |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Register any application services. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | 11 | public function register() |
|
41 | { |
||
42 | 11 | $this->mergeConfigFrom(__DIR__ . '/../config/nfc-shortcode.php', 'nfc-shortcode'); |
|
43 | } |
||
44 | } |
||
45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.