Completed
Push — master ( 9a4fb7...cb90a4 )
by Chubarov
04:11
created

ConfigurationServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 10
ccs 6
cts 6
cp 1
rs 10
c 1
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 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
}