Skip to content

Commit 754420d

Browse files
committed
cleanup and comments
1 parent e9df6e1 commit 754420d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Database/Query/FMBaseBuilder.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,10 @@ public function recordId($recordId)
340340

341341
public function orderBy($column, $direction = self::ASCEND): FMBaseBuilder
342342
{
343-
$direction = match($direction) {
344-
self::ASCEND, 'asc' => self::ASCEND,
345-
self::DESCEND, 'desc' => self::DESCEND,
343+
// check for specific direction values sent by some Laravel functions and convert them to FileMaker's values
344+
$direction = match ($direction) {
345+
'asc' => self::ASCEND,
346+
'desc' => self::DESCEND,
346347
default => $direction
347348
};
348349

0 commit comments

Comments
 (0)