Skip to content

Commit 76faca7

Browse files
committed
Apply fixes from StyleCI
1 parent 300802f commit 76faca7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Illuminate/Database/Concerns/BuildsQueries.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ protected function paginateUsingCursor($perPage, $columns = ['*'], $cursorName =
348348
$cursor->parameter($previousColumn)
349349
);
350350

351-
$unionBuilders->each(function ($unionBuilder) use($previousColumn, $cursor) {
351+
$unionBuilders->each(function ($unionBuilder) use ($previousColumn, $cursor) {
352352
$unionBuilder->where(
353353
$this->getOriginalColumnNameForCursorPagination($this, $previousColumn),
354354
'=',
@@ -374,7 +374,7 @@ protected function paginateUsingCursor($perPage, $columns = ['*'], $cursorName =
374374
});
375375
}
376376

377-
$unionBuilders->each(function ($unionBuilder) use ($column, $direction, $cursor, $i, $orders, $addCursorConditions){
377+
$unionBuilders->each(function ($unionBuilder) use ($column, $direction, $cursor, $i, $orders, $addCursorConditions) {
378378
$unionBuilder->where(function ($unionBuilder) use ($column, $direction, $cursor, $i, $orders, $addCursorConditions) {
379379
$unionBuilder->where(
380380
$this->getOriginalColumnNameForCursorPagination($this, $column),

tests/Database/DatabaseQueryBuilderTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4053,6 +4053,7 @@ public function testCursorPaginateWithUnionWheres()
40534053
$builder->toSql());
40544054
$this->assertEquals([$ts], $builder->bindings['where']);
40554055
$this->assertEquals([$ts], $builder->bindings['union']);
4056+
40564057
return $results;
40574058
});
40584059

@@ -4099,6 +4100,7 @@ public function testCursorPaginateWithUnionWheresWithRawOrderExpression()
40994100
$builder->toSql());
41004101
$this->assertEquals([true, $ts], $builder->bindings['where']);
41014102
$this->assertEquals([true, $ts], $builder->bindings['union']);
4103+
41024104
return $results;
41034105
});
41044106

@@ -4145,6 +4147,7 @@ public function testCursorPaginateWithUnionWheresReverseOrder()
41454147
$builder->toSql());
41464148
$this->assertEquals([$ts], $builder->bindings['where']);
41474149
$this->assertEquals([$ts], $builder->bindings['union']);
4150+
41484151
return $results;
41494152
});
41504153

@@ -4161,8 +4164,8 @@ public function testCursorPaginateWithUnionWheresReverseOrder()
41614164
]), $result);
41624165
}
41634166

4164-
public function testCursorPaginateWithUnionWheresMultipleOrders()
4165-
{
4167+
public function testCursorPaginateWithUnionWheresMultipleOrders()
4168+
{
41664169
$ts = now()->toDateTimeString();
41674170

41684171
$perPage = 16;
@@ -4191,6 +4194,7 @@ public function testCursorPaginateWithUnionWheresMultipleOrders()
41914194
$builder->toSql());
41924195
$this->assertEquals([$ts, $ts, 1], $builder->bindings['where']);
41934196
$this->assertEquals([$ts, $ts, 1], $builder->bindings['union']);
4197+
41944198
return $results;
41954199
});
41964200

0 commit comments

Comments
 (0)