From 31942f0eec46d9e67f1ba8a7dbf3249eb3fd818b Mon Sep 17 00:00:00 2001 From: marcogermani87 Date: Sun, 15 Sep 2024 15:15:33 +0000 Subject: [PATCH] Fix styling --- src/Models/Email.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Models/Email.php b/src/Models/Email.php index 756b9bc..bc48136 100644 --- a/src/Models/Email.php +++ b/src/Models/Email.php @@ -53,7 +53,7 @@ public function team(): BelongsTo protected static function booted(): void { static::addGlobalScope('teams', function (Builder $query) { - if (!app()->runningInConsole()) { + if (! app()->runningInConsole()) { if (auth()->check() && Filament::getTenant()) { $query->whereBelongsTo(auth()->user()?->teams); } else { @@ -68,9 +68,9 @@ public static function boot() parent::boot(); self::deleting(function ($record) { - $folderPath = ""; + $folderPath = ''; $storageDisk = config('filament-email.attachments_disk', 'local'); - if (!empty($record->attachments)) { + if (! empty($record->attachments)) { foreach ($record->attachments as $attachment) { $filePath = Storage::disk($storageDisk)->path($attachment['path']); if (empty($folderPath)) { @@ -83,7 +83,7 @@ public static function boot() } } } - if (!empty($record->raw_body) && count(explode(DIRECTORY_SEPARATOR, $record->raw_body)) === 3) { + if (! empty($record->raw_body) && count(explode(DIRECTORY_SEPARATOR, $record->raw_body)) === 3) { if (Storage::disk($storageDisk)->exists($record->raw_body)) { if (empty($folderPath)) { $parts = explode(DIRECTORY_SEPARATOR, $record->raw_body); @@ -93,7 +93,7 @@ public static function boot() Storage::disk($storageDisk)->delete($record->raw_body); } } - if (!empty($folderPath) && Storage::disk($storageDisk)->directoryExists($folderPath)) { + if (! empty($folderPath) && Storage::disk($storageDisk)->directoryExists($folderPath)) { Storage::disk($storageDisk)->deleteDirectory($folderPath); } });