Completed
Push — master ( 6fc476...44b229 )
by Stéphane
02:54
created

SendGridApiServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace StephaneCoinon\SendGridActivity\Integrations\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
use StephaneCoinon\SendGridActivity\SendGrid;
7
8
class SendGridApiServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register bindings in the container.
12
     *
13
     * @return void
14
     */
15
    public function register()
16
    {
17
        $this->app->singleton(SendGrid::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...
18
            return new SendGrid(config('services.sendgrid.key'));
19
        });
20
    }
21
}
22