Completed
Push — master ( 5c637a...214bce )
by Julien
03:47
created

CartServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Cart;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * Class CartServiceProvider
9
 * @package App\Http\Cart
10
 */
11
class CartServiceProvider extends ServiceProvider
12
{
13
14
    /**
15
     * Bootstrap the application services.
16
     *
17
     * @return void
18
     */
19
    public function boot()
20
    {
21
        //
22
    }
23
24
25
    /**
26
     * Register the application services.
27
     *
28
     * @return void
29
     */
30
    public function register()
31
    {
32
        $this->app->singleton(Cart::class, function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app 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...
33
            return new Cart();
34
        });
35
    }
36
}
37