MobileMoneyServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Samerior\MobileMoney;
4
5
use Samerior\MobileMoney\Equity\EquityServiceProvider;
6
use Samerior\MobileMoney\Mpesa\MpesaServiceProvider;
7
use Illuminate\Support\ServiceProvider;
8
9
class MobileMoneyServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Register any package services.
13
     *
14
     * @return void
15
     */
16 2
    public function register()
17
    {
18 2
        $this->app->register(MpesaServiceProvider::class);
19 2
        $this->app->register(EquityServiceProvider::class);
20 2
    }
21
22 2
    public function boot()
23
    {
24 2
        $this->requireHelperScripts();
25 2
    }
26
27 2
    private function requireHelperScripts()
28
    {
29 2
        $files = glob(__DIR__ . '/Support/*.php');
30 2
        foreach ($files as $file) {
31 2
            include_once $file;
32
        }
33 2
    }
34
}
35