From 16bb8fd46b9ffbb60d5a1c48216b02bebb3bfe3b Mon Sep 17 00:00:00 2001 From: Raziul Islam <51883557+iRaziul@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:13:29 +0600 Subject: [PATCH] Update getNavigationBadge to use parentheses in nested ternary expressions --- src/Resources/MediaResource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/MediaResource.php b/src/Resources/MediaResource.php index 6ccc698..0cf8469a 100644 --- a/src/Resources/MediaResource.php +++ b/src/Resources/MediaResource.php @@ -74,11 +74,11 @@ public static function getCluster(): ?string public static function getNavigationBadge(): ?string { return CuratorPlugin::get()->getNavigationCountBadge() ? - (Filament::hasTenancy() && Config::get('curator.is_tenant_aware')) ? + (Filament::hasTenancy() && Config::get('curator.is_tenant_aware') ? static::getEloquentQuery() ->where(Config::get('curator.tenant_ownership_relationship_name') . '_id', Filament::getTenant()->id) ->count() - : number_format(static::getModel()::count()) + : number_format(static::getModel()::count())) : null; }