diff --git a/src/Builder.php b/src/Builder.php index cf403a93..2bb8b46b 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -252,7 +252,7 @@ public function get() } /** - * Get a lazy collection of the search. + * Get the results of the search as a "lazy collection" instance. * * @return \Illuminate\Support\LazyCollection */ diff --git a/src/Engines/AlgoliaEngine.php b/src/Engines/AlgoliaEngine.php index 2675eca1..e84d7d76 100644 --- a/src/Engines/AlgoliaEngine.php +++ b/src/Engines/AlgoliaEngine.php @@ -183,7 +183,7 @@ public function map(Builder $builder, $results, $model) } /** - * Lazy-Map the given results to instances of the given model. + * Map the given results to instances of the given model via a lazy collection. * * @param \Laravel\Scout\Builder $builder * @param mixed $results diff --git a/src/Engines/Engine.php b/src/Engines/Engine.php index 6a3f3f84..b6ed93a1 100644 --- a/src/Engines/Engine.php +++ b/src/Engines/Engine.php @@ -59,7 +59,7 @@ abstract public function mapIds($results); abstract public function map(Builder $builder, $results, $model); /** - * Lazy-Map the given results to instances of the given model. + * Map the given results to instances of the given model via a lazy collection. * * @param \Laravel\Scout\Builder $builder * @param mixed $results diff --git a/src/Engines/NullEngine.php b/src/Engines/NullEngine.php index be269073..bf93594d 100644 --- a/src/Engines/NullEngine.php +++ b/src/Engines/NullEngine.php @@ -80,12 +80,12 @@ public function map(Builder $builder, $results, $model) } /** - * Map the given results to instances of the given model. + * Map the given results to instances of the given model via a lazy collection. * * @param \Laravel\Scout\Builder $builder * @param mixed $results * @param \Illuminate\Database\Eloquent\Model $model - * @return \Illuminate\Database\Eloquent\Collection + * @return \Illuminate\Support\LazyCollection */ public function lazyMap(Builder $builder, $results, $model) { diff --git a/src/Searchable.php b/src/Searchable.php index 4ce41c29..00eeeeef 100644 --- a/src/Searchable.php +++ b/src/Searchable.php @@ -189,7 +189,7 @@ public function getScoutModelsByIds(Builder $builder, array $ids) } /** - * Get the requested models from an array of object IDs. + * Get a query builder for retrieving the requested models from an array of object IDs. * * @param \Laravel\Scout\Builder $builder * @param array $ids