Completed
Push — master ( b1a367...7183fa )
by Sebastian
02:00
created

MenuServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 1
cbo 3
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
1
<?php
2
3
namespace Spatie\Menu\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class MenuServiceProvider extends ServiceProvider
8
{
9
    public function register()
10
    {
11
        $this->app->bind(Menu::class, function () {
12
            return Menu::new();
13
        });
14
15
        $this->app->alias(Menu::class, 'menu');
16
    }
17
}
18