Completed
Push — master ( 486598...7261f1 )
by Ryan
12:27
created

Kernel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getArtisan() 0 9 2
A commands() 0 4 1
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
 */
12
class Kernel extends \Illuminate\Foundation\Console\Kernel
13
{
14
15
    /**
16
     * Get the Artisan application instance.
17
     *
18
     * @return \Illuminate\Console\Application
19
     */
20
    protected function getArtisan()
21
    {
22
        if (is_null($this->artisan)) {
23
            return $this->artisan = (new Application($this->app, $this->events, $this->app->version()))
24
                ->resolveCommands($this->commands);
25
        }
26
27
        return $this->artisan;
28
    }
29
30
    /**
31
     * Include base commands.
32
     */
33
    protected function commands()
34
    {
35
        require base_path('routes/console.php');
36
    }
37
}
38