Skip to content
Permalink
Browse files

formatting

  • Loading branch information...
taylorotwell committed Oct 18, 2019
1 parent ab4910f commit 3f3b6214cc3353156a490d88fc8f0c148da400d5
Showing with 14 additions and 14 deletions.
  1. +14 −14 src/Illuminate/Database/Query/Builder.php
@@ -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.
*
@@ -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.
*

0 comments on commit 3f3b621

Please sign in to comment.
You can’t perform that action at this time.