Issue/329 refactor seeding (#337)

* Fix Contracts class names

* Refactoring of the file seeds so it's not a mess

* StyleCI fixes
This commit is contained in:
Nabeel S
2019-08-05 08:27:53 -04:00
committed by GitHub
parent d4c172e734
commit 9f3ba05880
47 changed files with 548 additions and 394 deletions

View File

@@ -12,9 +12,9 @@ use App\Repositories\AcarsRepository;
use App\Repositories\NavdataRepository;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Geotools;
use Log;
/**
* Class GeoService
@@ -109,6 +109,7 @@ class GeoService extends Service
continue;
}
$point = null;
$size = \count($points);
if ($size === 0) {
@@ -150,6 +151,10 @@ class GeoService extends Service
}
}
if ($point === null) {
continue;
}
$coords[] = $point;
}