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

SendGridApiServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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