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; } 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",