Skip to content

Commit 2a3bceb

Browse files
TreggatsGromNaN
andcommitted
Apply suggestions from code review
Co-authored-by: Jérôme Tamarelle <[email protected]>
1 parent 2304843 commit 2a3bceb

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
@@ -225,12 +225,12 @@ protected function ensureOrderForCursorPagination($shouldReverse = false)
225225

226226
if ($shouldReverse) {
227227
$this->query->orders = collect($this->query->orders)
228-
->map(fn (int $direction) => $direction === 1 ? -1 : 1)
228+
->map(static fn (int $direction) => $direction === 1 ? -1 : 1)
229229
->toArray();
230230
}
231231

232232
return collect($this->query->orders)
233-
->map(fn ($direction, $column) => [
233+
->map(static fn ($direction, $column) => [
234234
'column' => $column,
235235
'direction' => $direction === 1 ? 'asc' : 'desc',
236236
])->values();

0 commit comments

Comments
 (0)