refactor: code style changes
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
@@ -6,7 +6,6 @@ use App\Notifications\AccountDeleted;
|
||||
use App\Notifications\UserDeletedAccount;
|
||||
use App\User;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
@@ -25,7 +24,6 @@ class ProcessAccountDelete implements ShouldQueue
|
||||
*/
|
||||
protected User $user;
|
||||
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*
|
||||
@@ -44,7 +42,7 @@ class ProcessAccountDelete implements ShouldQueue
|
||||
public function handle()
|
||||
{
|
||||
Log::alert('[Worker] Processing account deletion request', [
|
||||
'email' => $this->user->email
|
||||
'email' => $this->user->email,
|
||||
]);
|
||||
|
||||
$email = $this->user->email;
|
||||
@@ -52,7 +50,7 @@ class ProcessAccountDelete implements ShouldQueue
|
||||
|
||||
if ($this->user->delete()) {
|
||||
Notification::route('mail', [
|
||||
$email => $name
|
||||
$email => $name,
|
||||
])->notify(new AccountDeleted($name));
|
||||
|
||||
// Notify admins
|
||||
|
@@ -21,9 +21,7 @@
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Ban;
|
||||
use App\Services\AccountSuspensionService;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
|
@@ -4,7 +4,6 @@ namespace App\Jobs;
|
||||
|
||||
use App\Services\AbsenceService;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
|
Reference in New Issue
Block a user