Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-03-18 17:48:57 +00:00
parent 1bea8f8d5c
commit 8fa00e2ef6
57 changed files with 148 additions and 131 deletions

View File

@@ -36,7 +36,7 @@ class ChampionSkinSeeder extends Seeder
'champion_id' => $champion['id'],
'full_skin_id' => $skin['id'],
'skin_id' => substr($skin['id'], 3),
'skin_name' => $skin['name'] . ' ' . $champion['name'],
'skin_name' => $skin['name'].' '.$champion['name'],
'lore' => $skin['lore'],
'availability' => $skin['availability'],
'loot_eligible' => $skin['lootEligible'],
@@ -65,11 +65,11 @@ class ChampionSkinSeeder extends Seeder
// Check if the skin already exists and if any attributes have changed, if so update the skin. If the skin doesn't exist, create it.
// This is to prevent the skin data from being updated every time the seeder is run. As I'll probably run this on a cron job.
if ($skinExists && $this->hasAttributesChanged($skinExists, $skinAttributes)) {
Log::info('Skin ' . $skin['name'] . ' ' . $champion['name'] . ' has changed, updating...');
Log::info('Skin '.$skin['name'].' '.$champion['name'].' has changed, updating...');
$skinExists->update($skinAttributes);
$changeCount++;
} elseif (!$skinExists) {
Log::info('New skin detected! Creating ' . $skin['name'] . ' ' . $champion['name'] . '...');
} elseif (! $skinExists) {
Log::info('New skin detected! Creating '.$skin['name'].' '.$champion['name'].'...');
ChampionSkin::create($skinAttributes);
$changeCount++;
}