JsonApiAssertServiceProvider::boot()   A
last analyzed

Complexity

Conditions 3
Paths 3

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 10
cc 3
nc 3
nop 0
crap 3
1
<?php
2
3
namespace VGirol\JsonApiAssert\Laravel;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * Service provider for Laravel
9
 */
10
class JsonApiAssertServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application services.
14
     *
15
     * @return void
16
     */
17 408
    public function boot()
18
    {
19 408
        $list = glob(__DIR__ . '/macro/**/*.php');
20 408
        if ($list !== false) {
21 408
            foreach ($list as $file) {
22 408
                require_once($file);
23
            }
24
        }
25 408
    }
26
27
    /**
28
     * Register the application services.
29
     *
30
     * @return void
31
     */
32 408
    public function register()
33
    {
34 408
    }
35
}
36