PintuProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 23
ccs 3
cts 3
cp 1
rs 10

1 Method

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