TurboSMSServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 21
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
A register() 0 3 1
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