MenuServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 11
c 0
b 0
f 0
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