code-style

This commit is contained in:
Saeed Vaziry
2025-03-13 20:53:14 +01:00
parent 0f06d81aac
commit 48ae561ea4
43 changed files with 122 additions and 76 deletions

View File

@ -5,7 +5,9 @@
use App\Actions\FirewallRule\ManageRule;
use App\Models\FirewallRule;
use App\Models\Server;
use App\Models\User;
use App\Web\Pages\Servers\Firewall\Index;
use Exception;
use Filament\Notifications\Notification;
use Filament\Support\Enums\MaxWidth;
use Filament\Tables\Actions\Action;
@ -74,7 +76,7 @@ protected function getTableColumns(): array
public function table(Table $table): Table
{
/** @var \App\Models\User $user */
/** @var User $user */
$user = auth()->user();
return $table
@ -114,7 +116,7 @@ public function table(Table $table): Table
->action(function (FirewallRule $record): void {
try {
app(ManageRule::class)->delete($record);
} catch (\Exception $e) {
} catch (Exception $e) {
Notification::make()
->danger()
->title($e->getMessage())