@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | }); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param TNTSearch $tnt |
|
| 48 | + */ |
|
| 46 | 49 | protected function setFuzziness($tnt) |
| 47 | 50 | { |
| 48 | 51 | $tnt->fuzziness = config('scout.tntsearch.fuzziness', $tnt->fuzziness); |
@@ -51,6 +54,9 @@ discard block |
||
| 51 | 54 | $tnt->fuzzy_max_expansions = config('scout.tntsearch.fuzzy.max_expansions', $tnt->fuzzy_max_expansions); |
| 52 | 55 | } |
| 53 | 56 | |
| 57 | + /** |
|
| 58 | + * @param TNTSearch $tnt |
|
| 59 | + */ |
|
| 54 | 60 | protected function setAsYouType($tnt) |
| 55 | 61 | { |
| 56 | 62 | $tnt->asYouType = config('scout.tntsearch.asYouType', $tnt->asYouType); |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * @param $trait |
|
| 132 | + * @param string $trait |
|
| 133 | 133 | * @return \Closure |
| 134 | 134 | */ |
| 135 | 135 | private function isSearchableModel($trait) |
@@ -4,6 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | class SearchPerformed |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @param \Laravel\Scout\Builder $builder |
|
| 9 | + */ |
|
| 7 | 10 | public function __construct($builder, $results, $isBooleanSearch = false) |
| 8 | 11 | { |
| 9 | 12 | $this->query = $builder->query; |
@@ -287,6 +287,7 @@ discard block |
||
| 287 | 287 | * The constraints usually remove only a small amount of results, which is why the non |
| 288 | 288 | * matching results are looked up and removed, instead of returning a collection with |
| 289 | 289 | * all the valid results. |
| 290 | + * @param Builder $builder |
|
| 290 | 291 | */ |
| 291 | 292 | private function discardIdsFromResultSetByConstraints($builder, $searchResults) |
| 292 | 293 | { |
@@ -445,6 +446,9 @@ discard block |
||
| 445 | 446 | * |
| 446 | 447 | * @param string |
| 447 | 448 | * @param string |
| 449 | + * @param string $name |
|
| 450 | + * @param string $result |
|
| 451 | + * @param string $model |
|
| 448 | 452 | * @return string |
| 449 | 453 | */ |
| 450 | 454 | public function applyFilters($name, $result, $model) |