mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -104,7 +104,7 @@ class Champion extends Model
|
|||||||
$baseUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/assets/characters/';
|
$baseUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/assets/characters/';
|
||||||
$championName = strtolower(str_replace([' ', "'", '.'], ['', '', ''], $this->name));
|
$championName = strtolower(str_replace([' ', "'", '.'], ['', '', ''], $this->name));
|
||||||
$imagePath = 'base/images/';
|
$imagePath = 'base/images/';
|
||||||
$imageUrl = $baseUrl . $championName . '/skins/' . $imagePath . $championName . '_splash_';
|
$imageUrl = $baseUrl.$championName.'/skins/'.$imagePath.$championName.'_splash_';
|
||||||
$imageUrl .= $uncentered ? 'uncentered' : 'centered';
|
$imageUrl .= $uncentered ? 'uncentered' : 'centered';
|
||||||
$imageUrl .= '_0.jpg';
|
$imageUrl .= '_0.jpg';
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class ChampionSkin extends Model
|
|||||||
{
|
{
|
||||||
$championName = strtolower(str_replace([' ', "'"], ['', ''], $this->champion->name));
|
$championName = strtolower(str_replace([' ', "'"], ['', ''], $this->champion->name));
|
||||||
$imagePath = $uncentered ? 'uncentered_' : 'centered_';
|
$imagePath = $uncentered ? 'uncentered_' : 'centered_';
|
||||||
$imageUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/assets/characters/' . $championName . '/skins/skin' . str_pad($this->skin_id, 2, '0', STR_PAD_LEFT) . '/images/' . $championName . '_splash_' . $imagePath . $this->skin_id . '.jpg';
|
$imageUrl = 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/assets/characters/'.$championName.'/skins/skin'.str_pad($this->skin_id, 2, '0', STR_PAD_LEFT).'/images/'.$championName.'_splash_'.$imagePath.$this->skin_id.'.jpg';
|
||||||
|
|
||||||
return $imageUrl;
|
return $imageUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user