Test Failed
Push — master ( b80488...89d0f8 )
by Arthur
04:48
created

ConsoleKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A schedule() 0 2 1
A commands() 0 5 1
1
<?php
2
3
namespace Foundation\Kernels;
4
5
use Foundation\Console\BootstrapCacheCommand;
6
use Foundation\Console\SeedCommand;
7
use Illuminate\Console\Scheduling\Schedule;
8
use Illuminate\Foundation\Console\Kernel as LaravelConsoleKernel;
9
10
class ConsoleKernel extends LaravelConsoleKernel
11
{
12
    /**
13
     * The Artisan commands provided by your application.
14
     *
15
     * @var array
16
     */
17
    protected $commands = [
18
        BootstrapCacheCommand::class,
19
       // SeedCommand::class
20
    ];
21
22
    /**
23
     * Define the application's command schedule.
24
     *
25
     * @param \Illuminate\Console\Scheduling\Schedule $schedule
26
     *
27
     * @return void
28
     */
29 4
    protected function schedule(Schedule $schedule)
30
    {
31
        // $schedule->command('inspire')
32
        //          ->hourly();
33 4
    }
34
35
    /**
36
     * Register the commands for the application.
37
     *
38
     * @return void
39
     */
40 4
    protected function commands()
41
    {
42 4
        $this->load(__DIR__.'/Commands');
43
44 4
        require base_path('routes/console.php');
45 4
    }
46
}
47