Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.054 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | }); |
|
45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.