Kernel::schedule()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
namespace Interfaces\Console;
3
4
use Illuminate\Console\Scheduling\Schedule;
5
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
6
7
/**
8
 * Class Kernel
9
 */
10
class Kernel extends ConsoleKernel
11
{
12
    /**
13
     * The Artisan commands provided by your application.
14
     *
15
     * @var array
16
     */
17
    protected $commands = [
18
        \Interfaces\Console\Commands\StartGitterPool::class,
19
        \Interfaces\Console\Commands\StartGitterBot::class,
20
        \Interfaces\Console\Commands\GetGitterRoomId::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
32
            ->command('gitter:pool', ['restart'])
33
            ->everyFiveMinutes();
34
    }
35
}
36