Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] Rename method #13894

Merged
merged 1 commit into from
Jun 6, 2016
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1206,20 +1206,20 @@ protected function nestWheresForScope(QueryBuilder $query, $originalWhereCount)

$query->wheres = [];

$this->sliceWhereConditions($query, $allWheres, 0, $originalWhereCount);
$this->sliceWhereConditions($query, $allWheres, $originalWhereCount);
$this->addNestedWhereSlice($query, $allWheres, 0, $originalWhereCount);
$this->addNestedWhereSlice($query, $allWheres, $originalWhereCount);
}

/**
* Create a slice of where conditions at the given offsets and nest them if needed.
* Slice where conditions at the given offset and add them to the query as a nested condition.
*
* @param \Illuminate\Database\Query\Builder $query
* @param array $wheres
* @param int $offset
* @param int $length
* @return void
*/
protected function sliceWhereConditions(QueryBuilder $query, $wheres, $offset, $length = null)
protected function addNestedWhereSlice(QueryBuilder $query, $wheres, $offset, $length = null)
{
$whereSlice = array_slice($wheres, $offset, $length);

Expand Down