PanaceaMobileServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 1
cbo 3
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
1
<?php
2
3
namespace NotificationChannels\PanaceaMobile;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class PanaceaMobileServiceProvider extends ServiceProvider
8
{
9
    public function register()
10
    {
11
        $this->app->singleton(PanaceaMobileApi::class, 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...
12
            $config = config('services.panaceamobile');
13
14
            return new PanaceaMobileApi($config['login'], $config['secret'], $config['sender']);
15
        });
16
    }
17
}
18