mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
style: fix control structure
This commit is contained in:
@@ -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 = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user