Completed
Push — master ( 4510f4...5094ff )
by Vladimir
09:59
created

FoundationServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 75%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Foundation\Providers;
6
7
use FondBot\Foundation\Kernel;
8
use Illuminate\Support\ServiceProvider;
9
10
class FoundationServiceProvider extends ServiceProvider
11
{
12
    public function register(): void
13
    {
14 88
        $this->app->singleton(Kernel::class, function () {
15
            return new Kernel;
16 88
        });
17 88
    }
18
}
19