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

FoundationServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 3
cts 4
cp 0.75
crap 1.0156
rs 9.4285
c 1
b 0
f 0
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