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

Kernel::getArtisan()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 9
rs 9.6666
cc 2
eloc 5
nc 2
nop 0
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