Completed
Pull Request — master (#42)
by Şəhriyar
446:28 queued 439:35
created

Kernel::schedule()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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