mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user