JsonApiAssertServiceProvider   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 5
c 1
b 0
f 0
dl 0
loc 24
ccs 7
cts 7
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 3
A register() 0 2 1
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