From 5e9e5008f048090dd86acd7f372a8118eb1205ff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 03:06:57 +0000 Subject: [PATCH 1/2] build(deps): bump intervention/image from 3.2.2 to 3.2.4 Bumps [intervention/image](https://github.com/Intervention/image) from 3.2.2 to 3.2.4. - [Commits](https://github.com/Intervention/image/compare/3.2.2...3.2.4) --- updated-dependencies: - dependency-name: intervention/image dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- composer.lock | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 1ba4340..02d21fd 100644 --- a/composer.lock +++ b/composer.lock @@ -1969,16 +1969,16 @@ }, { "name": "intervention/image", - "version": "3.2.2", + "version": "3.2.4", "source": { "type": "git", "url": "https://github.com/Intervention/image.git", - "reference": "71bb0e3449bbbfdf47a0d0f2860af7e5e90428e6" + "reference": "e04c51b367fad2b010758e74528041484cd8d2f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Intervention/image/zipball/71bb0e3449bbbfdf47a0d0f2860af7e5e90428e6", - "reference": "71bb0e3449bbbfdf47a0d0f2860af7e5e90428e6", + "url": "https://api.github.com/repos/Intervention/image/zipball/e04c51b367fad2b010758e74528041484cd8d2f7", + "reference": "e04c51b367fad2b010758e74528041484cd8d2f7", "shasum": "" }, "require": { @@ -1991,6 +1991,9 @@ "phpstan/phpstan": "^1", "phpunit/phpunit": "^9" }, + "suggest": { + "ext-exif": "Recommended to be able to read EXIF data properly." + }, "type": "library", "autoload": { "psr-4": { @@ -2020,7 +2023,7 @@ ], "support": { "issues": "https://github.com/Intervention/image/issues", - "source": "https://github.com/Intervention/image/tree/3.2.2" + "source": "https://github.com/Intervention/image/tree/3.2.4" }, "funding": [ { @@ -2032,7 +2035,7 @@ "type": "github" } ], - "time": "2024-01-07T09:11:20+00:00" + "time": "2024-01-14T07:47:00+00:00" }, { "name": "laminas/laminas-diactoros", From aae03b398a05e52ae07e40e5433b469ab6692af6 Mon Sep 17 00:00:00 2001 From: Rico Date: Mon, 15 Jan 2024 03:07:06 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- app/Http/Controllers/ChampionController.php | 8 ++++---- app/Http/Controllers/ChampionSkinController.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/ChampionController.php b/app/Http/Controllers/ChampionController.php index 399e034..d6500a2 100644 --- a/app/Http/Controllers/ChampionController.php +++ b/app/Http/Controllers/ChampionController.php @@ -17,9 +17,9 @@ class ChampionController extends Controller { $eightHoursInSeconds = 60 * 60 * 8; - $champions = Cache::remember('championsListAllCache', $eightHoursInSeconds, static fn() => Champion::orderBy('name')->get()); + $champions = Cache::remember('championsListAllCache', $eightHoursInSeconds, static fn () => Champion::orderBy('name')->get()); - $roles = Cache::remember('championsRolesCache', $eightHoursInSeconds, static fn() => ChampionRoles::orderBy('champion_name')->get()); + $roles = Cache::remember('championsRolesCache', $eightHoursInSeconds, static fn () => ChampionRoles::orderBy('champion_name')->get()); return view('champions.index', ['champions' => $champions, 'roles' => $roles]); } @@ -48,12 +48,12 @@ class ChampionController extends Controller $threeDaysInSeconds = 60 * 60 * 24 * 3; $sixMonthsInSeconds = 60 * 60 * 24 * 30 * 6; - $champion = Cache::remember('championShowCache' . $champion->slug, $threeDaysInSeconds, static fn() => $champion->load('skins', 'lanes')); + $champion = Cache::remember('championShowCache' . $champion->slug, $threeDaysInSeconds, static fn () => $champion->load('skins', 'lanes')); $splashColor = Cache::remember( 'championSplashColorCache' . $champion->slug, $sixMonthsInSeconds, - static fn() => getAverageColorFromImageUrl($champion->getChampionImageAttribute()) + static fn () => getAverageColorFromImageUrl($champion->getChampionImageAttribute()) ); $champion->splash_color = $splashColor; diff --git a/app/Http/Controllers/ChampionSkinController.php b/app/Http/Controllers/ChampionSkinController.php index 07996b4..deb07af 100644 --- a/app/Http/Controllers/ChampionSkinController.php +++ b/app/Http/Controllers/ChampionSkinController.php @@ -57,13 +57,13 @@ class ChampionSkinController extends Controller $skin = Cache::remember( 'championSkinShowCache' . $championSkin->slug, 60 * 60 * 48, - static fn() => $championSkin->load('champion', 'chromas') + static fn () => $championSkin->load('champion', 'chromas') ); $splashColor = Cache::remember( 'championSkinSplashColorCache' . $championSkin->slug, 60 * 60 * 120, - static fn() => getAverageColorFromImageUrl($championSkin->getSkinImageAttribute()) + static fn () => getAverageColorFromImageUrl($championSkin->getSkinImageAttribute()) ); $skin->splash_color = $splashColor;