EquityServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
ccs 3
cts 4
cp 0.75
crap 1.0156
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Samerior\MobileMoney\Equity;
4
5
use Samerior\MobileMoney\Equity\Library\StkRequest;
6
use Illuminate\Contracts\Foundation\Application;
7
use Illuminate\Support\ServiceProvider;
8
9
/**
10
 * Class EquityServiceProvider
11
 * @package Samerior\MobileMoney\Equity
12
 */
13
class EquityServiceProvider extends ServiceProvider
14
{
15 2
    public function register()
16
    {
17
        $this->app->bind('equity', function (Application $app) {
18
            return $app->make(StkRequest::class);
19 2
        });
20 2
    }
21
}
22