Kernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 34
rs 10

2 Methods

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