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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user