Kernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 42
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A schedule() 0 5 1
A commands() 0 4 1
1
<?php
2
3
/*
4
 * rmarchiv.tk
5
 * (c) 2016-2017 by Marcel 'ryg' Hering
6
 */
7
8
namespace App\Console;
9
10
use Illuminate\Console\Scheduling\Schedule;
11
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
12
13
class Kernel extends ConsoleKernel
14
{
15
    /**
16
     * The Artisan commands provided by your application.
17
     *
18
     * @var array
19
     */
20
    protected $commands = [
21
        Commands\TruncateTables::class,
22
        Commands\IndexSearch::class,
23
        Commands\setReldate::class,
24
        Commands\setVotes::class,
25
        Commands\PlayerCreateInfo::class,
26
        Commands\PlayerRar2Zip::class,
27
        Commands\PT::class,
28
        Commands\TestSearch::class,
29
        Commands\GetMissingGameFilesCommand::class,
30
    ];
31
32
    /**
33
     * Define the application's command schedule.
34
     *
35
     * @param \Illuminate\Console\Scheduling\Schedule $schedule
36
     *
37
     * @return void
38
     */
39
    protected function schedule(Schedule $schedule)
40
    {
41
        $schedule->command('ban:delete-expired')->everyMinute();
42
        $schedule->command('debug:missingfiles')->everyFiveMinutes();
43
    }
44
45
    /**
46
     * Register the Closure based commands for the application.
47
     *
48
     * @return void
49
     */
50
    protected function commands()
51
    {
52
        require base_path('routes/console.php');
53
    }
54
}
55