Skip to content

Commit

Permalink
fixed pint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jobverplanke committed Jul 24, 2024
1 parent e184bb6 commit af26cbd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/GeometryExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
/** @codeCoverageIgnore */
class GeometryExpression
{
public function __construct(readonly private string $expression)
{
}
public function __construct(readonly private string $expression) {}

public function normalize(ConnectionInterface $connection): string
{
Expand Down
6 changes: 3 additions & 3 deletions tests/HasSpatialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
});

it('toExpressionString can handle a Expression input', function (): void {
$spatialBuilder = new TestPlace();
$spatialBuilder = new TestPlace;
$toExpressionStringMethod = (new ReflectionClass($spatialBuilder))->getMethod('toExpressionString');

$result = $toExpressionStringMethod->invoke($spatialBuilder, DB::raw('POINT(longitude, latitude)'));
Expand All @@ -456,7 +456,7 @@
});

it('toExpressionString can handle a Geometry input', function (): void {
$testPlace = new TestPlace();
$testPlace = new TestPlace;
$toExpressionStringMethod = (new ReflectionClass($testPlace))->getMethod('toExpressionString');
$polygon = Polygon::fromJson('{"type":"Polygon","coordinates":[[[-1,-1],[1,-1],[1,1],[-1,1],[-1,-1]]]}');

Expand All @@ -469,7 +469,7 @@
});

it('toExpressionString can handle a string input', function (): void {
$spatialBuilder = new TestPlace();
$spatialBuilder = new TestPlace;
$toExpressionStringMethod = (new ReflectionClass($spatialBuilder))->getMethod('toExpressionString');

$result = $toExpressionStringMethod->invoke($spatialBuilder, 'test_places.point');
Expand Down
1 change: 1 addition & 0 deletions tests/TestModels/TestExtendedPlace.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* @property ExtendedMultiLineString $multi_line_string
* @property ExtendedPolygon $polygon
* @property ExtendedMultiPolygon $multi_polygon
*
* @mixin Model
*/
class TestExtendedPlace extends Model
Expand Down

0 comments on commit af26cbd

Please sign in to comment.