PlaySmsServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 10 1
1
<?php
2
3
namespace CoreProc\NotificationChannels\PlaySms;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class PlaySmsServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Register the application services.
11
     */
12
    public function register()
13
    {
14
        $this->app->bind(PlaySmsClient::class, function () {
15
            return new PlaySmsClient(
16
                config('services.playsms.base_url'),
17
                config('services.playsms.username'),
18
                config('services.playsms.api_key')
19
            );
20
        });
21
    }
22
}
23