From 073be75ac0d19fa24e649ee43ad8ffc4ad58781a Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Mon, 14 Oct 2024 19:03:25 +0200 Subject: [PATCH] Remove unused $scopes variable --- src/Http/Controllers/Admin/FeaturedController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/Admin/FeaturedController.php b/src/Http/Controllers/Admin/FeaturedController.php index 48ae968aa..58c38686e 100644 --- a/src/Http/Controllers/Admin/FeaturedController.php +++ b/src/Http/Controllers/Admin/FeaturedController.php @@ -165,7 +165,7 @@ private function getFeaturedSources(Request $request, $featuredSection, $search $items = $fetchedModules[$module] ?? $repository->get( $bucketable['with'] ?? [], - ($bucketable['scopes'] ?? []) + ($scopes ?? []), + $bucketable['scopes'] ?? [], $bucketable['orders'] ?? [], $bucketable['per_page'] ?? $request->get('offset') ?? 10, true,