Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 18, 2019
1 parent ab4910f commit 3f3b621
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,24 +342,11 @@ protected function parseSub($query)
return [$query, []];
} else {
throw new InvalidArgumentException(
'The subquery must be an instance of Closure or Builder, or a string.'
'A subquery must be a query builder instance, a Closure, or a string.'
);
}
}

/**
* Determine if the value is a query builder instance or a closure.
*
* @param mixed $value
* @return bool
*/
protected function isQueryable($value)
{
return $value instanceof self ||
$value instanceof EloquentBuilder ||
$value instanceof Closure;
}

/**
* Add a new select column to the query.
*
Expand Down Expand Up @@ -2962,6 +2949,19 @@ public function useWritePdo()
return $this;
}

/**
* Determine if the value is a query builder instance or a Closure.
*
* @param mixed $value
* @return bool
*/
protected function isQueryable($value)
{
return $value instanceof self ||
$value instanceof EloquentBuilder ||
$value instanceof Closure;
}

/**
* Clone the query without the given properties.
*
Expand Down

0 comments on commit 3f3b621

Please sign in to comment.