SmsServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 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