NotifierServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 1
1
<?php
2
3
namespace Rojtjo\Notifier\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
use Rojtjo\Notifier\SessionStore as NotifierSessionStore;
7
use Rojtjo\Notifier\Transport;
8
use Rojtjo\Notifier\Transports\SessionTransport;
9
10
class NotifierServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Register the service provider.
14
     *
15
     * @return void
16
     */
17 3
    public function register()
18
    {
19 3
        $this->app->singleton(Transport::class, SessionTransport::class);
20 3
        $this->app->singleton(NotifierSessionStore::class, SessionStore::class);
21 3
    }
22
}
23