diff --git a/src/GeometryExpression.php b/src/GeometryExpression.php index 2b4fed7..fbf2607 100644 --- a/src/GeometryExpression.php +++ b/src/GeometryExpression.php @@ -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 { diff --git a/tests/HasSpatialTest.php b/tests/HasSpatialTest.php index 1a967a2..a949ae2 100644 --- a/tests/HasSpatialTest.php +++ b/tests/HasSpatialTest.php @@ -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)')); @@ -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]]]}'); @@ -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'); diff --git a/tests/TestModels/TestExtendedPlace.php b/tests/TestModels/TestExtendedPlace.php index c864515..12f2d11 100644 --- a/tests/TestModels/TestExtendedPlace.php +++ b/tests/TestModels/TestExtendedPlace.php @@ -24,6 +24,7 @@ * @property ExtendedMultiLineString $multi_line_string * @property ExtendedPolygon $polygon * @property ExtendedMultiPolygon $multi_polygon + * * @mixin Model */ class TestExtendedPlace extends Model