mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
Merge pull request #194 from rico-vz/dependabot/composer/phpunit/phpunit-11.1.2
This commit is contained in:
@@ -37,7 +37,7 @@ class ChampionController extends Controller
|
|||||||
$splashColor = Cache::remember(
|
$splashColor = Cache::remember(
|
||||||
'championSplashColorCache'.$champion->slug,
|
'championSplashColorCache'.$champion->slug,
|
||||||
$sixMonthsInSeconds,
|
$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;
|
$champion->splash_color = $splashColor;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class ChampionSkinController extends Controller
|
|||||||
$splashColor = Cache::remember(
|
$splashColor = Cache::remember(
|
||||||
'championSkinSplashColorCache'.$championSkin->slug,
|
'championSkinSplashColorCache'.$championSkin->slug,
|
||||||
60 * 60 * 120,
|
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;
|
$skin->splash_color = $splashColor;
|
||||||
|
|||||||
@@ -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/';
|
$baseUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/';
|
||||||
$imagePath = $uncentered ? 'uncentered/' : '';
|
$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;
|
return $imageUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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/';
|
$baseUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/';
|
||||||
$imagePath = $uncentered ? 'uncentered/' : '';
|
$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;
|
return $imageUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
12
composer.lock
generated
12
composer.lock
generated
@@ -10129,16 +10129,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "11.1.1",
|
"version": "11.1.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "816cb6070af901c0548aa5f18f2132fd8a6e4ade"
|
"reference": "51e342a0bc987e0ea8418105d0711f08ae116de3"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/816cb6070af901c0548aa5f18f2132fd8a6e4ade",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/51e342a0bc987e0ea8418105d0711f08ae116de3",
|
||||||
"reference": "816cb6070af901c0548aa5f18f2132fd8a6e4ade",
|
"reference": "51e342a0bc987e0ea8418105d0711f08ae116de3",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -10209,7 +10209,7 @@
|
|||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
"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": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -10225,7 +10225,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2024-04-06T06:20:21+00:00"
|
"time": "2024-04-14T07:13:56+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "rector/rector",
|
"name": "rector/rector",
|
||||||
|
|||||||
Reference in New Issue
Block a user