Fix formatting and interfaces in nearly every file
This commit is contained in:
@@ -18,21 +18,19 @@ class GeoJson
|
||||
* @var int
|
||||
*/
|
||||
protected $counter;
|
||||
|
||||
/**
|
||||
* @var array [lon, lat] pairs
|
||||
*/
|
||||
protected $line_coords = [];
|
||||
|
||||
/**
|
||||
* @var Feature[]
|
||||
*/
|
||||
protected $point_coords = [];
|
||||
|
||||
/**
|
||||
* @param $lat
|
||||
* @param $lon
|
||||
* @param array $attrs Attributes of the Feature
|
||||
* @param $lat
|
||||
* @param $lon
|
||||
* @param array $attrs Attributes of the Feature
|
||||
*/
|
||||
public function addPoint($lat, $lon, array $attrs)
|
||||
{
|
||||
@@ -47,7 +45,7 @@ class GeoJson
|
||||
*/
|
||||
public function getLine(): FeatureCollection
|
||||
{
|
||||
if(empty($this->line_coords) || \count($this->line_coords) < 2) {
|
||||
if (empty($this->line_coords) || \count($this->line_coords) < 2) {
|
||||
return new FeatureCollection([]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user