Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 1, 2016
1 parent 6ac8713 commit 35b4360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ public function has($relation, $operator = '>=', $count = 1, $boolean = 'and', C
$query = $relation->{$queryType}($relation->getRelated()->newQuery(), $this);

if ($callback) {
$this->applyCallback($callback, [$query], $query->getQuery());
$this->applyCallbackToQuery($callback, [$query], $query->getQuery());
}

return $this->addHasWhere(
Expand Down Expand Up @@ -1137,7 +1137,7 @@ protected function callScope($scope, $parameters)
{
array_unshift($parameters, $this);

return $this->applyCallback([$this->model, $scope], $parameters);
return $this->applyCallbackToQuery([$this->model, $scope], $parameters);
}

/**
Expand All @@ -1148,7 +1148,7 @@ protected function callScope($scope, $parameters)
* @param \Illuminate\Database\Query\Builder $query
* @return mixed
*/
protected function applyCallback(callable $callback, $parameters = [], $query = null)
protected function applyCallbackToQuery(callable $callback, $parameters = [], $query = null)
{
$query = $query ?: $this->getQuery();

Expand Down

0 comments on commit 35b4360

Please sign in to comment.