Kernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A schedule() 0 9 1
A commands() 0 4 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
        \App\Console\Commands\ClearBeanstalkdQueue::class,
17
        \App\Console\Commands\GenerateModule::class,
18
        \Spatie\LinkChecker\CheckLinksCommand::class,
19
        \Spatie\FragmentImporter\Commands\ImportFragments::class,
20
        \App\Console\Commands\PrefetchAnalyticsData::class,
21
        \Spatie\MigrateFresh\Commands\MigrateFresh::class,
22
    ];
23
24
    /**
25
     * Define the application's command schedule.
26
     *
27
     * @param \Illuminate\Console\Scheduling\Schedule $schedule
28
     */
29
    protected function schedule(Schedule $schedule)
30
    {
31
        $schedule->command(\Spatie\Backup\Commands\BackupCommand::class)->dailyAt('03:00');
32
        $schedule->command(\Spatie\Backup\Commands\CleanupCommand::class)->dailyAt('04:00');
33
        $schedule->command(\Spatie\LinkChecker\CheckLinksCommand::class)->monthly();
34
        $schedule->command(\Spatie\ModelCleanup\CleanUpModelsCommand::class)->daily();
35
        $schedule->command(\Spatie\Activitylog\CleanActivitylogCommand::class)->daily();
36
        $schedule->command(\App\Console\Commands\PrefetchAnalyticsData::class)->dailyAt('06:00');
37
    }
38
39
    /**
40
     * Register the Closure based commands for the application.
41
     */
42
    protected function commands()
43
    {
44
        //require base_path('routes/console.php');
0 ignored issues
show
Unused Code Comprehensibility introduced by
72% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
45
    }
46
}
47