Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-04-30 23:18:02 +00:00
parent 63d975dab9
commit 672088b696
2 changed files with 3 additions and 3 deletions

View File

@@ -103,8 +103,8 @@ 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';

View File

@@ -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;
} }