Issues (1)

src/ServiceProvider.php (1 issue)

Severity
1
<?php
2
3
namespace NovaVideoField;
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 1
    public function boot()
16
    {
17 1
        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('video-field', __DIR__ . '/../dist/js/field.js');
19
            Nova::style('video-field', __DIR__ . '/../dist/css/field.css');
20 1
        });
21
    }
22
23
    /**
24
     * Register any application services.
25
     *
26
     * @return void
27
     */
28 1
    public function register()
29
    {
30
        //
31 1
    }
32
}
33