From 2b9fd26b7e707091eaef1d260b0c6c68c71aac38 Mon Sep 17 00:00:00 2001 From: Rico van Zelst Date: Thu, 28 Mar 2024 10:35:50 +0100 Subject: [PATCH] fix: Use static arrow function for splash color calculation - Replace the anonymous function with a static arrow function for calculating the splash color in ChampionSkinController.php. --- app/Http/Controllers/ChampionSkinController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ChampionSkinController.php b/app/Http/Controllers/ChampionSkinController.php index 1aa3ad1..dff12c8 100644 --- a/app/Http/Controllers/ChampionSkinController.php +++ b/app/Http/Controllers/ChampionSkinController.php @@ -63,7 +63,7 @@ class ChampionSkinController extends Controller $splashColor = Cache::remember( 'championSkinSplashColorCache' . $championSkin->slug, 60 * 60 * 120, - getAverageColorFromImageUrl('https://wsrv.nl/?url=' . $championSkin->getSkinImageAttribute()) + static fn () => getAverageColorFromImageUrl('https://wsrv.nl/?url=' . $championSkin->getSkinImageAttribute()) ); $skin->splash_color = $splashColor;