This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from mstaack/rework-tests
cleanup and namespaces
- Loading branch information
Showing
36 changed files
with
215 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Test Suite | ||
|
||
on: [push, pull_request] | ||
on: [push] | ||
|
||
jobs: | ||
tests: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
'schema' => 'public' // Schema for the Postgis extension | ||
|
||
]; | ||
'schema' => 'public' // Schema for the Postgis extension | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,46 @@ | ||
<?php namespace MStaack\LaravelPostgis\Geometries; | ||
<?php | ||
|
||
class Factory implements \GeoIO\Factory { | ||
public function createPoint( $dimension, array $coordinates, $srid = null ) | ||
namespace MStaack\LaravelPostgis\Geometries; | ||
|
||
class Factory implements \GeoIO\Factory | ||
{ | ||
public function createPoint($dimension, array $coordinates, $srid = null) | ||
{ | ||
return new Point( $coordinates['y'], $coordinates['x'], isset($coordinates['z']) ? $coordinates['z'] : null ); | ||
return new Point($coordinates['y'], $coordinates['x'], $coordinates['z'] ?? null); | ||
} | ||
|
||
public function createLineString( $dimension, array $points, $srid = null ) | ||
public function createLineString($dimension, array $points, $srid = null) | ||
{ | ||
return new LineString( $points ); | ||
return new LineString($points); | ||
} | ||
|
||
public function createLinearRing( $dimension, array $points, $srid = null ) | ||
public function createLinearRing($dimension, array $points, $srid = null) | ||
{ | ||
return new LineString( $points ); | ||
return new LineString($points); | ||
} | ||
|
||
public function createPolygon( $dimension, array $lineStrings, $srid = null ) | ||
public function createPolygon($dimension, array $lineStrings, $srid = null) | ||
{ | ||
return new Polygon( $lineStrings ); | ||
return new Polygon($lineStrings); | ||
} | ||
|
||
public function createMultiPoint( $dimension, array $points, $srid = null ) | ||
public function createMultiPoint($dimension, array $points, $srid = null) | ||
{ | ||
return new MultiPoint( $points ); | ||
return new MultiPoint($points); | ||
} | ||
|
||
public function createMultiLineString( $dimension, array $lineStrings, $srid = null ) | ||
public function createMultiLineString($dimension, array $lineStrings, $srid = null) | ||
{ | ||
return new MultiLineString( $lineStrings ); | ||
return new MultiLineString($lineStrings); | ||
} | ||
|
||
public function createMultiPolygon( $dimension, array $polygons, $srid = null ) | ||
public function createMultiPolygon($dimension, array $polygons, $srid = null) | ||
{ | ||
return new MultiPolygon( $polygons ); | ||
return new MultiPolygon($polygons); | ||
} | ||
|
||
public function createGeometryCollection( $dimension, array $geometries, $srid = null ) | ||
public function createGeometryCollection($dimension, array $geometries, $srid = null) | ||
{ | ||
return new GeometryCollection( $geometries ); | ||
return new GeometryCollection($geometries); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.