Issues (1)

src/ServiceProvider.php (1 issue)

Severity
1
<?php
2
3
namespace ThinkStudio\HtmlField;
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 4
    public function boot()
16
    {
17 4
        Nova::serving(function (ServingNova $event) {
0 ignored issues
show
The parameter $event is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
        Nova::serving(function (/** @scrutinizer ignore-unused */ ServingNova $event) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
            Nova::script('html-field', __DIR__ . '/../dist/js/field.js');
19
            Nova::style('html-field', __DIR__ . '/../dist/css/field.css');
20 4
        });
21
22 4
        if ($this->app->runningInConsole()) {
23 4
            $this->publishes([
24 4
                __DIR__ . '/../resources/views' => resource_path('views/vendor/nova-html-field'),
25 4
            ], 'views');
26
        }
27 4
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'nova-html-field');
28
    }
29
30
    /**
31
     * Register any application services.
32
     *
33
     * @return void
34
     */
35 4
    public function register()
36
    {
37
        //
38 4
    }
39
}
40