ConfigurationServiceProvider::register()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1
crap 2
1
<?php
2
namespace agoalofalife\bpm\ServiceProviders;
3
4
5
use agoalofalife\bpm\Contracts\ServiceProvider;
6
use Illuminate\Config\Repository;
7
8
class ConfigurationServiceProvider implements ServiceProvider
9
{
10 23
    public function register()
11
    {
12 23
        if ( app()->resolved('config') === false )
13 23
        {
14 1
            app()->instance('config', new Repository());
15 1
        }
16
    }
17
}