ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 22
ccs 4
cts 6
cp 0.6667
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 5 1
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
Unused Code introduced by
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