From a0f3fcba1888650676791a137fe12b1698ecec7a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 03:17:16 +0000 Subject: [PATCH 1/2] build(deps-dev): bump phpunit/phpunit from 11.1.1 to 11.1.2 Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 11.1.1 to 11.1.2. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/11.1.2/ChangeLog-11.1.md) - [Commits](https://github.com/sebastianbergmann/phpunit/compare/11.1.1...11.1.2) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 753998b..34c7715 100644 --- a/composer.lock +++ b/composer.lock @@ -10129,16 +10129,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.1.1", + "version": "11.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "816cb6070af901c0548aa5f18f2132fd8a6e4ade" + "reference": "51e342a0bc987e0ea8418105d0711f08ae116de3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/816cb6070af901c0548aa5f18f2132fd8a6e4ade", - "reference": "816cb6070af901c0548aa5f18f2132fd8a6e4ade", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/51e342a0bc987e0ea8418105d0711f08ae116de3", + "reference": "51e342a0bc987e0ea8418105d0711f08ae116de3", "shasum": "" }, "require": { @@ -10209,7 +10209,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.1.1" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.1.2" }, "funding": [ { @@ -10225,7 +10225,7 @@ "type": "tidelift" } ], - "time": "2024-04-06T06:20:21+00:00" + "time": "2024-04-14T07:13:56+00:00" }, { "name": "rector/rector", From 401fa11cb15b5e03d4f28b7ebc87cadf9f681360 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 15 Apr 2024 03:17:22 +0000 Subject: [PATCH 2/2] Apply fixes from StyleCI --- app/Http/Controllers/ChampionController.php | 2 +- app/Http/Controllers/ChampionSkinController.php | 2 +- app/Models/Champion.php | 2 +- app/Models/ChampionSkin.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/ChampionController.php b/app/Http/Controllers/ChampionController.php index 28dd893..7efb7e7 100644 --- a/app/Http/Controllers/ChampionController.php +++ b/app/Http/Controllers/ChampionController.php @@ -37,7 +37,7 @@ class ChampionController extends Controller $splashColor = Cache::remember( 'championSplashColorCache'.$champion->slug, $sixMonthsInSeconds, - static fn () => getAverageColorFromImageUrl('https://wsrv.nl/?url=' . $champion->getChampionImageAttribute(true)) + static fn () => getAverageColorFromImageUrl('https://wsrv.nl/?url='.$champion->getChampionImageAttribute(true)) ); $champion->splash_color = $splashColor; diff --git a/app/Http/Controllers/ChampionSkinController.php b/app/Http/Controllers/ChampionSkinController.php index 3b53543..ae90ab5 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, - static fn () => getAverageColorFromImageUrl('https://wsrv.nl/?url=' . $championSkin->getSkinImageAttribute(true)) + static fn () => getAverageColorFromImageUrl('https://wsrv.nl/?url='.$championSkin->getSkinImageAttribute(true)) ); $skin->splash_color = $splashColor; diff --git a/app/Models/Champion.php b/app/Models/Champion.php index 7c471da..0f5147e 100644 --- a/app/Models/Champion.php +++ b/app/Models/Champion.php @@ -103,7 +103,7 @@ class Champion extends Model { $baseUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/'; $imagePath = $uncentered ? 'uncentered/' : ''; - $imageUrl = $baseUrl . $imagePath . $this->champion_id . '/' . $this->champion_id . '000.jpg'; + $imageUrl = $baseUrl.$imagePath.$this->champion_id.'/'.$this->champion_id.'000.jpg'; return $imageUrl; } diff --git a/app/Models/ChampionSkin.php b/app/Models/ChampionSkin.php index d5093f0..2f58b91 100644 --- a/app/Models/ChampionSkin.php +++ b/app/Models/ChampionSkin.php @@ -76,7 +76,7 @@ class ChampionSkin extends Model { $baseUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/'; $imagePath = $uncentered ? 'uncentered/' : ''; - $imageUrl = $baseUrl . $imagePath . $this->champion_id . '/' . $this->full_skin_id . '.jpg'; + $imageUrl = $baseUrl.$imagePath.$this->champion_id.'/'.$this->full_skin_id.'.jpg'; return $imageUrl; }