Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 31, 2016
1 parent 284311c commit 04a430a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public function chunk($count, callable $callback)

do {
$results = $this->forPage($page, $count)->get();

$countResults = $results->count();

if ($countResults == 0) {
Expand Down Expand Up @@ -408,6 +409,7 @@ public function chunkById($count, callable $callback, $column = 'id')

do {
$results = $this->forPageAfterId($count, $lastId, $column)->get();

$countResults = $results->count();

if ($countResults == 0) {
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,7 @@ public function chunk($count, callable $callback)

do {
$results = $this->forPage($page, $count)->get();

$countResults = $results->count();

if ($countResults == 0) {
Expand Down Expand Up @@ -1847,6 +1848,7 @@ public function chunkById($count, callable $callback, $column = 'id', $alias = n

do {
$results = $this->forPageAfterId($count, $lastId, $column)->get();

$countResults = $results->count();

if ($countResults == 0) {
Expand Down

0 comments on commit 04a430a

Please sign in to comment.