Kernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 11
c 0
b 0
f 0
ccs 0
cts 5
cp 0
rs 10

1 Method

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