Completed
Push — master ( 816440...cac82f )
by Vladimir
12:37
created

Kernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A getArtisan() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Framework\Console;
6
7
use Illuminate\Foundation\Console\Kernel as BaseKernel;
8
9
class Kernel extends BaseKernel
10
{
11
    /** {@inheritdoc} */
12
    protected function getArtisan()
13
    {
14
        if ($this->artisan === null) {
15
            return $this->artisan = (new Application($this->app, $this->events, $this->app->version()))
16
                ->resolveCommands($this->commands);
17
        }
18
19
        return $this->artisan;
20
    }
21
}
22