Skip to content

Commit ae81c19

Browse files
author
Wout Gevaert
committed
Fix codestyle and such
1 parent b025025 commit ae81c19

File tree

6 files changed

+7
-16
lines changed

6 files changed

+7
-16
lines changed

src/Formatter/Specialised/BoltOGMTranslator.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ private function makeFromBoltPoint2D(BoltPoint2d $x): CartesianPoint
194194
} elseif ($x->srid() === WGS84Point::SRID) {
195195
return new WGS84Point($x->x(), $x->y());
196196
}
197-
throw new UnexpectedValueException(
198-
'An srid of ' . $x->srid() . ' has been returned, which has not been implemented.'
199-
);
197+
throw new UnexpectedValueException('An srid of '.$x->srid().' has been returned, which has not been implemented.');
200198
}
201199

202200
private function makeFromBoltPoint3D(BoltPoint3D $x): Cartesian3DPoint
@@ -206,9 +204,7 @@ private function makeFromBoltPoint3D(BoltPoint3D $x): Cartesian3DPoint
206204
} elseif ($x->srid() === WGS843DPoint::SRID) {
207205
return new WGS843DPoint($x->x(), $x->y(), $x->z());
208206
}
209-
throw new UnexpectedValueException(
210-
'An srid of ' . $x->srid() . ' has been returned, which has not been implemented.'
211-
);
207+
throw new UnexpectedValueException('An srid of '.$x->srid().' has been returned, which has not been implemented.');
212208
}
213209

214210
private function makeFromBoltPath(BoltPath $path): Path

src/Formatter/Specialised/HttpOGMTranslator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
use stdClass;
4343
use function str_pad;
4444
use function substr;
45+
use UnexpectedValueException;
4546

4647
/**
4748
* @psalm-immutable
@@ -308,9 +309,7 @@ private function translatePoint(stdClass $value): PointInterface
308309
$coordinates[2],
309310
);
310311
}
311-
throw new UnexpectedValueException(
312-
'A point with srid ' . $srid . ' and name ' . $crs->name . ' has been returned, which has not been implemented.'
313-
);
312+
throw new UnexpectedValueException('A point with srid '.$srid.' and name '.$crs->name.' has been returned, which has not been implemented.');
314313
}
315314

316315
/**

src/Types/Cartesian3DPoint.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace Laudis\Neo4j\Types;
1515

16-
use Bolt\structures\IStructure;
17-
use Bolt\structures\Point3D;
1816
use Laudis\Neo4j\Contracts\BoltConvertibleInterface;
1917
use Laudis\Neo4j\Contracts\PointInterface;
2018

src/Types/CartesianPoint.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace Laudis\Neo4j\Types;
1515

16-
use Bolt\structures\IStructure;
17-
use Bolt\structures\Point2D;
1816
use Laudis\Neo4j\Contracts\BoltConvertibleInterface;
1917
use Laudis\Neo4j\Contracts\PointInterface;
2018

src/Types/WGS843DPoint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
*/
2727
final class WGS843DPoint extends Abstract3DPoint implements PointInterface, BoltConvertibleInterface
2828
{
29-
const SRID = 4979;
30-
const CRS = 'wgs-84-3d';
29+
public const SRID = 4979;
30+
public const CRS = 'wgs-84-3d';
3131

3232
public function getSrid(): int
3333
{

src/Types/WGS84Point.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
final class WGS84Point extends AbstractPoint implements PointInterface, BoltConvertibleInterface
2828
{
2929
public const SRID = 4326;
30-
public const CRS = 'wgs-84';
30+
public const CRS = 'wgs-84';
3131

3232
public function getSrid(): int
3333
{

0 commit comments

Comments
 (0)