Skip to content

Commit

Permalink
Redundant, already called in the subsequent chunk()
Browse files Browse the repository at this point in the history
  • Loading branch information
vlakoff committed Nov 8, 2016
1 parent 9608f7e commit 8eb7f55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,6 @@ public function chunkById($count, callable $callback, $column = 'id')
*/
public function each(callable $callback, $count = 1000)
{
$this->enforceOrderBy();

return $this->chunk($count, function ($results) use ($callback) {
foreach ($results as $key => $value) {
if ($callback($value, $key) === false) {
Expand Down
2 changes: 0 additions & 2 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1878,8 +1878,6 @@ public function chunkById($count, callable $callback, $column = 'id', $alias = n
*/
public function each(callable $callback, $count = 1000)
{
$this->enforceOrderBy();

return $this->chunk($count, function ($results) use ($callback) {
foreach ($results as $key => $value) {
if ($callback($value, $key) === false) {
Expand Down

0 comments on commit 8eb7f55

Please sign in to comment.