ToolServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 12 1
A routes() 0 3 1
A register() 0 3 1
1
<?php
2
3
namespace Giuga\LaravelNovaSidebar;
4
5
use Illuminate\Support\ServiceProvider;
6
use Laravel\Nova\Events\ServingNova;
7
use Laravel\Nova\Nova;
8
9
class ToolServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap any application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'nova-sidebar');
19
20
        $this->app->booted(function () {
21
            $this->routes();
22
        });
23
24
        Nova::serving(function (ServingNova $event) {
0 ignored issues
show
Unused Code introduced by
The parameter $event is not used and could be removed.

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

Loading history...
25
            //
26
        });
27
    }
28
29
    /**
30
     * Register the tool's routes.
31
     *
32
     * @return void
33
     */
34
    protected function routes()
35
    {
36
    }
37
38
    /**
39
     * Register any application services.
40
     *
41
     * @return void
42
     */
43
    public function register()
44
    {
45
    }
46
}
47