SmsServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 18
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
A boot() 0 6 1
1
<?php
2
3
namespace LeadThread\Sms\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use LeadThread\Sms\Sms;
7
8
class SmsServiceProvider extends ServiceProvider
9
{
10 72
    public function register()
11
    {
12 72
        $this->mergeConfigFrom(__DIR__ . '/../../config/sms.php', 'sms');
13
14 72
        $this->app->singleton('sms', function () {
15 3
            return new Sms;
16 72
        });
17 72
    }
18
19 72
    public function boot()
20
    {
21 72
        $this->publishes([
22 72
            __DIR__ . '/../../config/sms.php' => base_path('config/sms.php'),
23 72
        ]);
24 72
    }
25
}
26