CartServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 4
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Recca0120\Cart;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class CartServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Register the service provider.
11
     */
12
    public function register()
13
    {
14
        $this->app->bind(Cart::class, function ($app) {
15
            return new Cart(new Storage('default', $app['session']->driver()));
16
        });
17
    }
18
}
19