chore: code refactor via rector
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Log;
|
||||
use App\Models\Email;
|
||||
use App\Models\Ticket;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
Artisan::command('inspire', function (): void {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
@@ -13,7 +14,7 @@ Artisan::command('inspire', function () {
|
||||
// Email::fetchProcessStoreEmail();
|
||||
// })->everyMinute();
|
||||
|
||||
Schedule::call(function () {
|
||||
Schedule::call(function (): void {
|
||||
Email::deleteBulkAttachments();
|
||||
})->daily();
|
||||
|
||||
@@ -21,22 +22,22 @@ Schedule::call(function () {
|
||||
// Email::deleteBulkMailboxes();
|
||||
// })->everyMinute();
|
||||
|
||||
Schedule::call(function () {
|
||||
Schedule::call(function (): void {
|
||||
Email::deleteMessagesFromDB();
|
||||
})->everyTwoHours();
|
||||
|
||||
Schedule::call(function () {
|
||||
\App\Models\Log::deleteLogsFromDB();
|
||||
Schedule::call(function (): void {
|
||||
Log::deleteLogsFromDB();
|
||||
})->everyThreeHours();
|
||||
|
||||
Schedule::call(function () {
|
||||
Schedule::call(function (): void {
|
||||
Email::cleanMailbox();
|
||||
});
|
||||
|
||||
Artisan::command('cleanMail', function () {
|
||||
Artisan::command('cleanMail', function (): void {
|
||||
$this->comment(Email::cleanMailbox());
|
||||
});
|
||||
|
||||
Artisan::command('closeTicket', function () {
|
||||
Artisan::command('closeTicket', function (): void {
|
||||
$this->comment(Ticket::autoClose());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user