Kernel::schedule()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace App\Console;
4
5
use Illuminate\Console\Scheduling\Schedule;
6
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
8
/**
9
 * Class Kernel
10
 * @package App\Console
11
 */
12
class Kernel extends ConsoleKernel
13
{
14
    /**
15
     * The Artisan commands provided by your application.
16
     *
17
     * @var array
18
     */
19
    protected $commands = [
20
        \App\Console\Commands\Inspire::class,
21
    ];
22
23
    /**
24
     * Define the application's command schedule.
25
     *
26
     * @param  \Illuminate\Console\Scheduling\Schedule $schedule
27
     * @return void
28
     */
29
    protected function schedule(Schedule $schedule)
30
    {
31
        $schedule->command('inspire')
32
            ->hourly();
33
    }
34
}
35