style fixing

This commit is contained in:
Roberto Guagliardo
2025-07-09 02:37:23 +02:00
parent ca5719474c
commit 195f20bb69
23 changed files with 68 additions and 51 deletions

View File

@@ -9,7 +9,8 @@ return new class extends Migration
/**
* Run the migrations.
*/
public function up(): void {
public function up(): void
{
Schema::create('work_experiences', function (Blueprint $table) {
$table->id();
$table->string('werkgever');

View File

@@ -20,7 +20,6 @@ return new class extends Migration
});
}
/**
* Reverse the migrations.
*/

View File

@@ -1,13 +1,13 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void {
public function up(): void
{
Schema::create('education', function (Blueprint $table) {
$table->id();
$table->string('opleiding'); // vergelijkbaar met 'werkgever'
@@ -19,7 +19,8 @@ return new class extends Migration
});
}
public function down(): void {
public function down(): void
{
Schema::dropIfExists('education');
}
};

View File

@@ -22,5 +22,4 @@ return new class extends Migration
$table->dropColumn('type');
});
}
};

View File

@@ -6,6 +6,7 @@ use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class DatabaseSeeder extends Seeder
{
/**
@@ -24,8 +25,7 @@ class DatabaseSeeder extends Seeder
]
);
// Andere seeders uitvoeren
// Andere seeders uitvoeren
$this->call([
EducationSeeder::class,
MediaSeeder::class,

View File

@@ -12,7 +12,7 @@ class EducationSeeder extends Seeder
{
$path = database_path('data/education.json');
if (!File::exists($path)) {
if (! File::exists($path)) {
return;
}

View File

@@ -12,8 +12,9 @@ class MediaSeeder extends Seeder
{
$path = database_path('data/media.json');
if (!File::exists($path)) {
$this->command->warn("media.json niet gevonden, seeding overgeslagen.");
if (! File::exists($path)) {
$this->command->warn('media.json niet gevonden, seeding overgeslagen.');
return;
}

View File

@@ -2,8 +2,8 @@
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Personalia;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\File;
class PersonaliaSeeder extends Seeder
@@ -12,8 +12,9 @@ class PersonaliaSeeder extends Seeder
{
$path = database_path('data/personalia.json');
if (!File::exists($path)) {
if (! File::exists($path)) {
$this->command->warn("Bestand {$path} bestaat niet, seeder overgeslagen.");
return;
}
@@ -33,6 +34,6 @@ class PersonaliaSeeder extends Seeder
]);
}
$this->command->info(count($data) . ' personalia-records geïmporteerd.');
$this->command->info(count($data).' personalia-records geïmporteerd.');
}
}

View File

@@ -2,8 +2,8 @@
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Skill;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\File;
class SkillSeeder extends Seeder
@@ -12,7 +12,7 @@ class SkillSeeder extends Seeder
{
$path = database_path('data/skills.json');
if (!File::exists($path)) {
if (! File::exists($path)) {
return;
}

View File

@@ -2,8 +2,8 @@
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\WorkExperience;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\File;
class WorkExperienceSeeder extends Seeder
@@ -13,8 +13,9 @@ class WorkExperienceSeeder extends Seeder
$jsonPath = database_path('data/work_experiences.json');
// Bestaat het JSON-bestand?
if (!File::exists($jsonPath)) {
if (! File::exists($jsonPath)) {
$this->command->warn("❌ Bestand $jsonPath niet gevonden. Seeder overgeslagen.");
return;
}
@@ -40,6 +41,6 @@ class WorkExperienceSeeder extends Seeder
);
}
$this->command->info("✅ Werkervaringen succesvol geïmporteerd.");
$this->command->info('✅ Werkervaringen succesvol geïmporteerd.');
}
}