Completed
Push — master ( 5e39f1...9c1d67 )
by Ryan
08:11
created

Kernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getArtisan() 0 9 2
1
<?php namespace Anomaly\Streams\Platform\Console;
2
3
use Illuminate\Contracts\Events\Dispatcher;
4
5
/**
6
 * Class Kernel
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 * @package       Anomaly\Streams\Platform\Console
12
 */
13
class Kernel extends \App\Console\Kernel
14
{
15
16
    /**
17
     * Get the Artisan application instance.
18
     *
19
     * @return \Illuminate\Console\Application
20
     */
21
    protected function getArtisan()
22
    {
23
        if (is_null($this->artisan)) {
24
            return $this->artisan = (new Application($this->app, $this->events, $this->app->version()))
25
                ->resolveCommands($this->commands);
26
        }
27
28
        return $this->artisan;
29
    }
30
}
31