Skip to content

Commit 78161f9

Browse files
TreggatsGromNaN
andcommitted
Apply suggestions from code review
Co-authored-by: Jérôme Tamarelle <jerome@tamarelle.net>
1 parent 63a16e5 commit 78161f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Eloquent/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ protected function ensureOrderForCursorPagination($shouldReverse = false)
234234

235235
if ($shouldReverse) {
236236
$this->query->orders = collect($this->query->orders)
237-
->map(fn (int $direction) => $direction === 1 ? -1 : 1)
237+
->map(static fn (int $direction) => $direction === 1 ? -1 : 1)
238238
->toArray();
239239
}
240240

241241
return collect($this->query->orders)
242-
->map(fn ($direction, $column) => [
242+
->map(static fn ($direction, $column) => [
243243
'column' => $column,
244244
'direction' => $direction === 1 ? 'asc' : 'desc',
245245
])->values();

0 commit comments

Comments
 (0)