Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
erikgaal authored and StyleCIBot committed Dec 14, 2021
1 parent 3cdb54d commit c4501c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Traits/SearchesQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ protected function applySearch(Builder $query, Arguments $args)
->replace(['&', '|', '!', '<->', '<', '>', ':', '"', '\''], ' ') // Replace reserved tsquery characters
->trim() // Trim whitespace
->split('/\s+/') // Split into words
->map(function ($str) { return $str.':*'; }) // Use prefix matching
->map(function ($str) {
return $str.':*';
}) // Use prefix matching
->join(' & '); // Join together with AND operators

$query->whereRaw("to_tsvector('${dictionary}', concat_ws(' ', ".$fields.")) @@ to_tsquery('${dictionary}', ?)", $tsQueryString);
Expand Down

0 comments on commit c4501c4

Please sign in to comment.