Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1212 from modularsoftware/analysis-M1oZWD
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
curtisdelicata authored Jun 4, 2020
2 parents b7b73d3 + 637381b commit 7aa4526
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
9 changes: 4 additions & 5 deletions app/Http/Controllers/Gedcom/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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'];
}
Expand All @@ -33,5 +33,4 @@ public function __invoke(Request $request)

return ['Not uploaded'];
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}

6 changes: 1 addition & 5 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,6 @@
->prefix('gedcom')
->as('gedcom.')
->group(function () {

Route::post('store', 'Store')->name('store');


});
});
});

0 comments on commit 7aa4526

Please sign in to comment.