@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | |
| 323 | 323 | /** |
| 324 | 324 | * NOTE: this will break if applied to something that's not a SiteTree subclass. |
| 325 | - * @param DataList|PaginatedList $matches |
|
| 325 | + * @param SS_List $matches |
|
| 326 | 326 | * @param array $facet |
| 327 | 327 | * @param int $typeID |
| 328 | 328 | */ |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | |
| 360 | 360 | /** |
| 361 | 361 | * Builds facets from all attributes present in the data set. |
| 362 | - * @param DataList|PaginatedList $matches |
|
| 362 | + * @param SS_List $matches |
|
| 363 | 363 | * @return array |
| 364 | 364 | */ |
| 365 | 365 | protected function buildAllAttributeFacets($matches) { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @param $typeID |
| 52 | - * @return callable |
|
| 52 | + * @return Closure |
|
| 53 | 53 | */ |
| 54 | 54 | protected function getValuesClosure($typeID) { |
| 55 | 55 | return function() use ($typeID) { |
@@ -214,7 +214,7 @@ |
||
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |
| 217 | - * @param $name |
|
| 217 | + * @param string $name |
|
| 218 | 218 | * @return string |
| 219 | 219 | */ |
| 220 | 220 | public function getVFIFieldName($name) { |
@@ -248,7 +248,7 @@ |
||
| 248 | 248 | |
| 249 | 249 | /** |
| 250 | 250 | * @param string $str |
| 251 | - * @return SS_Query |
|
| 251 | + * @return SQLQuery |
|
| 252 | 252 | */ |
| 253 | 253 | public function getSuggestQuery($str='') { |
| 254 | 254 | $hasResults = 'CASE WHEN max("SearchLog"."NumResults") > 0 THEN 1 ELSE 0 END'; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @param SS_HTTPRequest $req |
| 23 | - * @return string |
|
| 23 | + * @return SS_HTTPResponse |
|
| 24 | 24 | */ |
| 25 | 25 | public function search_suggest(SS_HTTPRequest $req) { |
| 26 | 26 | /** @var SS_HTTPResponse $response */ |