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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user