chore: code refactor via rector

This commit is contained in:
idevakk
2025-11-14 02:01:01 -08:00
parent 90ab79b3a2
commit ae795880ed
148 changed files with 1520 additions and 1486 deletions

View File

@@ -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());
});