Completed
Push — master ( 2b83dd...8da1f4 )
by Manuel
03:44
created

Kernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 0
cbo 3
dl 0
loc 34
ccs 4
cts 4
cp 1
rs 10

2 Methods

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