Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1.0156 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function schedule(Schedule $schedule) |
||
27 | { |
||
28 | $logPath = storage_path('logs/schedule.log'); |
||
29 | |||
30 | $schedule->command(SendEmailsExpiringRepetitiveEvents::class) |
||
31 | ->daily() |
||
32 | ->appendOutputTo($logPath) |
||
33 | ->emailOutputTo(env('WEBMASTER_MAIL')); |
||
34 | |||
35 | 118 | $schedule->command('sitemap:generate')->daily(); |
|
36 | |||
37 | 118 | // Backup |
|
38 | // $schedule->command('backup:clean')->weekly()->sundays()->at('00:00'); |
||
39 | 118 | $schedule->command('backup:run')->weekly()->sundays()->at('00:30'); |
|
40 | 118 | } |
|
54 |