PintuProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Joesama\Pintu;
4
5
use Illuminate\Support\ServiceProvider;
6
use Joesama\Pintu\Consoles\ComponentGenerator;
7
use Joesama\Pintu\Services\Traits\PintuLaravelRouting;
8
9
class PintuProvider extends ServiceProvider
10
{
11
    use PintuLaravelRouting;
12
13
    /**
14
     * List all registered commands.
15
     *
16
     * @var array
17
     */
18
    protected $console = [
19
        ComponentGenerator::class
20
    ];
21
22
    /**
23
     * Register class functionality.
24
     *
25
     * @return void
26
     */
27 1
    public function register(): void
28
    {
29 1
        $this->registerComponentRouting();
30
31 1
        $this->commands($this->console);
32 1
    }
33
}
34