Completed
Push — master ( 21e787...96c12e )
by Brandon
29s
created

Kernel::schedule()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 2
nc 1
nop 1
crap 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
class Kernel extends ConsoleKernel
9
{
10
    /**
11
     * The Artisan commands provided by your application.
12
     *
13
     * @var array
14
     */
15
    protected $commands = [
16
        //
17
    ];
18
19
    /**
20
     * Define the application's command schedule.
21
     *
22
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
23
     * @return void
24
     */
25 5
    protected function schedule(Schedule $schedule)
26
    {
27
        // Prune the activity log for entries older than 30 days.
28 5
        $schedule->command('activitylog:clean')->daily();
29 5
    }
30
31
    /**
32
     * Register the Closure based commands for the application.
33
     *
34
     * @return void
35
     */
36 5
    protected function commands()
37
    {
38 5
        require base_path('routes/console.php');
39 5
    }
40
}
41