NotifyLKServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
namespace ApiChef\NotifyLK;
4
5
use Carbon\Laravel\ServiceProvider;
6
use Illuminate\Foundation\Application;
7
8
class NotifyLKServiceProvider extends ServiceProvider
9
{
10 6
    public function boot(): void
11
    {
12 6
        $this->publishes([
13 6
            __DIR__.'/../config/notify-lk.php' => config_path('notify-lk.php'),
14 6
        ], 'config');
15 6
    }
16
17 6
    public function register(): void
18
    {
19 6
        $this->mergeConfigFrom(
20 6
            __DIR__.'/../config/notify-lk.php',
21 6
            'notify-lk'
22
        );
23
24 4
        $this->app->singleton('pay-here', function (Application $app): Client {
25
            return $app->make(Client::class);
26 6
        });
27 6
    }
28
}
29