Skip to content

Commit 1b9b095

Browse files
committed
formatting
1 parent cc972d2 commit 1b9b095

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/Database/Adapter/Postgres.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,8 +2077,10 @@ public function decodeLinestring(mixed $wkb): array
20772077

20782078
$points = [];
20792079
for ($i = 0; $i < $numPoints; $i++) {
2080-
$x = unpack('e', substr($wkb, $offset, 8))[1]; $offset += 8;
2081-
$y = unpack('e', substr($wkb, $offset, 8))[1]; $offset += 8;
2080+
$x = unpack('e', substr($wkb, $offset, 8))[1];
2081+
$offset += 8;
2082+
$y = unpack('e', substr($wkb, $offset, 8))[1];
2083+
$offset += 8;
20822084
$points[] = [(float)$x, (float)$y];
20832085
}
20842086

src/Database/Adapter/SQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public function getDocument(Document $collection, string $id, array $queries = [
359359
$forUpdate = $forUpdate ? 'FOR UPDATE' : '';
360360

361361
$alias = Query::DEFAULT_ALIAS;
362-
$spatialAttributes=[];
362+
$spatialAttributes = [];
363363
$sql = "
364364
SELECT {$this->getAttributeProjection($selections, $alias, $spatialAttributes)}
365365
FROM {$this->getSQLTable($name)} AS {$this->quote($alias)}

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ function (mixed $value) {
460460
*/
461461
function (mixed $value) {
462462
if (is_null($value)) {
463-
return null;
463+
return;
464464
}
465465
try {
466466
$value = new \DateTime($value);

0 commit comments

Comments
 (0)