Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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) { |
|
|
|||
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() |
|
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.