Skip to content

Commit 9360923

Browse files
author
Matan Yadaev
committed
fix lint issues
1 parent ff62847 commit 9360923

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Objects/GeometryTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$point = (new Point(91, 0, 4326));
2222
TestPlace::factory()->create(['point' => $point]);
2323
})->toThrow(QueryException::class);
24-
})->skip(fn() => !(new AxisOrder)->supported(DB::connection()));
24+
})->skip(fn () => ! (new AxisOrder)->supported(DB::connection()));
2525

2626
it('throws exception when generating geometry with invalid latitude - without axis-order', function (): void {
2727
expect(function (): void {
@@ -32,14 +32,14 @@
3232
->withDistanceSphere('point', new Point(1, 1, 4326))
3333
->firstOrFail();
3434
})->toThrow(QueryException::class);
35-
})->skip(fn() => (new AxisOrder)->supported(DB::connection()));
35+
})->skip(fn () => (new AxisOrder)->supported(DB::connection()));
3636

3737
it('throws exception when generating geometry with invalid longitude', function (): void {
3838
expect(function (): void {
3939
$point = (new Point(0, 181, 4326));
4040
TestPlace::factory()->create(['point' => $point]);
4141
})->toThrow(QueryException::class);
42-
})->skip(fn() => !(new AxisOrder)->supported(DB::connection()));
42+
})->skip(fn () => ! (new AxisOrder)->supported(DB::connection()));
4343

4444
it('throws exception when generating geometry with invalid longitude - without axis-order', function (): void {
4545
expect(function (): void {
@@ -50,7 +50,7 @@
5050
->withDistanceSphere('point', new Point(1, 1, 4326))
5151
->firstOrFail();
5252
})->toThrow(QueryException::class);
53-
})->skip(fn() => (new AxisOrder)->supported(DB::connection()));
53+
})->skip(fn () => (new AxisOrder)->supported(DB::connection()));
5454

5555
it('throws exception when generating geometry from other geometry WKT', function (): void {
5656
expect(function (): void {
@@ -86,15 +86,15 @@
8686
$sqlExpression = $point->toSqlExpression(DB::connection());
8787

8888
expect($sqlExpression)->toEqual("ST_GeomFromText('POINT(180 0)', 4326, 'axis-order=long-lat')");
89-
})->skip(fn() => !(new AxisOrder)->supported(DB::connection()));
89+
})->skip(fn () => ! (new AxisOrder)->supported(DB::connection()));
9090

9191
it('creates an SQL expression from a geometry - without axis-order', function (): void {
9292
$point = new Point(0, 180, 4326);
9393

9494
$sqlExpression = $point->toSqlExpression(DB::connection());
9595

9696
expect($sqlExpression)->toEqual("ST_GeomFromText('POINT(180 0)', 4326)");
97-
})->skip(fn() => (new AxisOrder)->supported(DB::connection()));
97+
})->skip(fn () => (new AxisOrder)->supported(DB::connection()));
9898

9999
it('creates a geometry object from a geo json array', function (): void {
100100
$point = new Point(0, 180);

0 commit comments

Comments
 (0)