From 637381b7f7b7d3bc9d3ea0fcca6cad766dfecfe9 Mon Sep 17 00:00:00 2001 From: Curtis Delicata Date: Thu, 4 Jun 2020 11:28:12 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Http/Controllers/Gedcom/Store.php | 9 ++++----- .../2020_04_10_154850_create_families_table.php | 2 +- .../2020_06_03_192100_add_columns_for_people_table.php | 2 +- .../2020_06_04_003701_create_structure_for_gedcoms.php | 3 +-- routes/api.php | 6 +----- 5 files changed, 8 insertions(+), 14 deletions(-) diff --git a/app/Http/Controllers/Gedcom/Store.php b/app/Http/Controllers/Gedcom/Store.php index 883b311a1..4b9398fcb 100644 --- a/app/Http/Controllers/Gedcom/Store.php +++ b/app/Http/Controllers/Gedcom/Store.php @@ -2,14 +2,14 @@ namespace App\Http\Controllers\Gedcom; -use App\Note; use App\Event; use App\Family; +use App\Http\Controllers\Controller; +use App\Note; use App\Person; use App\Source; -use Illuminate\Http\Request; -use App\Http\Controllers\Controller; use Asdfx\LaravelGedcom\Facades\GedcomParserFacade; +use Illuminate\Http\Request; class Store extends Controller { @@ -23,7 +23,7 @@ public function __invoke(Request $request) if ($request->hasFile('file')) { if ($request->file('file')->isValid()) { $request->file->storeAs('gedcom', 'file.ged'); - GedcomParserFacade::parse($request->file('file'), true); + GedcomParserFacade::parse($request->file('file'), true); return ['File uploaded']; } @@ -33,5 +33,4 @@ public function __invoke(Request $request) return ['Not uploaded']; } - } diff --git a/database/migrations/2020_04_10_154850_create_families_table.php b/database/migrations/2020_04_10_154850_create_families_table.php index 89613b67f..1373aeaf5 100644 --- a/database/migrations/2020_04_10_154850_create_families_table.php +++ b/database/migrations/2020_04_10_154850_create_families_table.php @@ -21,7 +21,7 @@ public function up() $table->integer('husband_id')->references('id')->on('persons')->nullable(); $table->integer('wife_id')->references('id')->on('persons')->nullable(); $table->timestamps(); - $table->softDeletes(); + $table->softDeletes(); }); } diff --git a/database/migrations/2020_06_03_192100_add_columns_for_people_table.php b/database/migrations/2020_06_03_192100_add_columns_for_people_table.php index de16bdbd3..b7bad1b9c 100644 --- a/database/migrations/2020_06_03_192100_add_columns_for_people_table.php +++ b/database/migrations/2020_06_03_192100_add_columns_for_people_table.php @@ -14,7 +14,7 @@ public function up() $table->char('sex', 1)->nullable(); $table->text('description')->nullable(); $table->integer('child_in_family_id')->references('id')->on('families')->nullable(); - $table->softDeletes(); + $table->softDeletes(); }); } diff --git a/database/migrations/2020_06_04_003701_create_structure_for_gedcoms.php b/database/migrations/2020_06_04_003701_create_structure_for_gedcoms.php index 63fe3cf87..6b9b4ef80 100644 --- a/database/migrations/2020_06_04_003701_create_structure_for_gedcoms.php +++ b/database/migrations/2020_06_04_003701_create_structure_for_gedcoms.php @@ -16,9 +16,8 @@ class CreateStructureForGedcoms extends Migration ]; protected $menu = [ - 'name' => 'Gedcom Import', 'icon' => '', 'route' => 'gedcom.index', 'order_index' => 999, 'has_children' => false + 'name' => 'Gedcom Import', 'icon' => '', 'route' => 'gedcom.index', 'order_index' => 999, 'has_children' => false, ]; protected $parentMenu = ''; } - diff --git a/routes/api.php b/routes/api.php index 44e464b04..e80bc94ad 100644 --- a/routes/api.php +++ b/routes/api.php @@ -244,10 +244,6 @@ ->prefix('gedcom') ->as('gedcom.') ->group(function () { - Route::post('store', 'Store')->name('store'); - - - }); + }); }); -