PanaceaMobileServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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