style: fix control structure

This commit is contained in:
Rico van Zelst
2023-11-02 13:55:33 +01:00
parent 5ee2e0ad68
commit 6166d467be

View File

@@ -7,7 +7,6 @@ use App\Models\ChampionRoles;
use App\Models\Champion; use App\Models\Champion;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;
class ChampionRolesSeeder extends Seeder class ChampionRolesSeeder extends Seeder
{ {
/** /**
@@ -22,7 +21,9 @@ class ChampionRolesSeeder extends Seeder
$rolesExists = ChampionRoles::where('champion_id', $championId)->first(); $rolesExists = ChampionRoles::where('champion_id', $championId)->first();
$championExists = Champion::where('champion_id', $championId)->first(); $championExists = Champion::where('champion_id', $championId)->first();
if ($championExists) $championName = $championExists->name; if ($championExists) {
$championName = $championExists->name;
}
$playedRoles = []; $playedRoles = [];