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

@@ -41,11 +41,11 @@ class ChampionSeeder extends Seeder
// Check if the champion already exists and if any attributes have changed, if so update the champion. If the champion doesn't exist, create it.
// This is to prevent the champion data from being updated every time the seeder is run. As I'll probably run this on a cron job.
if ($championExists && $this->hasAttributesChanged($championExists, $championAttributes)) {
Log::info('Champion ' . $champion['name'] . ' has changed, updating...');
Log::info('Champion '.$champion['name'].' has changed, updating...');
$championExists->update($championAttributes);
$changeCount++;
} elseif (!$championExists) {
Log::info('New champion detected! Creating ' . $champion['name'] . '...');
} elseif (! $championExists) {
Log::info('New champion detected! Creating '.$champion['name'].'...');
Champion::create($championAttributes);
$changeCount++;
}