Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix CS issues
This commit fixes CS issues
  • Loading branch information
Jeroenwv committed Feb 23, 2022
commit d6652de1f2e8d9757f123f0aef9d3a99d04a0d6b
7 changes: 5 additions & 2 deletions src/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Builder extends EloquentBuilder

/**
* The methods that should be returned from query builder.
*
* @var array
*/
protected $passthru = [
Expand Down Expand Up @@ -191,6 +192,7 @@ public function raw($expression = null)
* TODO Remove if https://github.com/laravel/framework/commit/6484744326531829341e1ff886cc9b628b20d73e
* wiil be reverted
* Issue in laravel frawework https://github.com/laravel/framework/issues/27791.
*
* @param array $values
* @return array
*/
Expand Down Expand Up @@ -235,10 +237,11 @@ protected function ensureOrderForCursorPagination($shouldReverse = false)
return $this->mapMongodbOrdersToEloquentOrders($this->query->orders);
}

private function mapMongodbOrdersToEloquentOrders($orders) {
private function mapMongodbOrdersToEloquentOrders($orders)
{
$eloquentOrders = [];

foreach($orders as $column => $direction) {
foreach ($orders as $column => $direction) {
$eloquentOrders[] = [
'column' => $column,
'direction' => $direction === 1 ? 'asc' : 'desc',
Expand Down