Skip to content

Commit

Permalink
[9.x] Fix wrong doc blocks (laravel#580)
Browse files Browse the repository at this point in the history
* Fix wrong doc block

Doc Block for the `getPrefixColumns` method was using the same description as the `getFullTextColumns` method.

I based the description on the attribute `SearchUsingPrefix`'s `$columns` property description.

https://github.com/laravel/scout/blob/bb6bea547d7f9231dab2bb378fed12a64a000687/src/Attributes/SearchUsingPrefix.php#L12

* Fix typo
  • Loading branch information
rodrigopedra authored Feb 8, 2022
1 parent b57064b commit d331da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Engines/DatabaseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected function initializeSearchQuery(Builder $builder, array $columns, array
}

/**
* Add additional, developer defined constraints to the serach query.
* Add additional, developer defined constraints to the search query.
*
* @param \Laravel\Scout\Builder $builder
* @param \Illuminate\Database\Eloquent\Builder $query
Expand Down Expand Up @@ -231,7 +231,7 @@ protected function getFullTextColumns(Builder $builder)
}

/**
* Get the full-text columns for the query.
* Get the prefix search columns for the query.
*
* @param \Laravel\Scout\Builder $builder
* @return array
Expand Down

0 comments on commit d331da3

Please sign in to comment.