TurboSMSServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace NotificationChannels\TurboSMS;
4
5
use Illuminate\Notifications\ChannelManager;
6
use Illuminate\Support\Facades\Notification;
7
use Illuminate\Support\ServiceProvider;
8
9
class TurboSMSServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap the application services.
13
     */
14
    public function boot()
15
    {
16
        Notification::resolved(function (ChannelManager $service) {
17
            $service->extend('turbosms', function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
                return new TurboSMSChannel(config('services.turbosms'));
19
            });
20
        });
21
    }
22
23
    /**
24
     * Register the application services.
25
     */
26
    public function register()
27
    {
28
    }
29
}
30