UnisenderChannelServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace NotificationChannels\Unisender\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use NotificationChannels\Unisender\UnisenderApi;
7
8
class UnisenderChannelServiceProvider extends ServiceProvider
9
{
10
    public function register()
11
    {
12
        $this->app->singleton(UnisenderApi::class, function ($app) {
13
            $token = $app['config']->get('services.unisender.api-key');
14
15
            return new UnisenderApi($token);
16
        });
17
    }
18
}
19