Skip to content

Commit

Permalink
[5.2] Rename method (#13894)
Browse files Browse the repository at this point in the history
Renamed a method as discussed here #13884
  • Loading branch information
acasar authored and taylorotwell committed Jun 6, 2016
1 parent dea4f37 commit 9e7df97
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 9e7df97

Please sign in to comment.