Commit fbd67904 authored by webchick's avatar webchick
Browse files

Issue #1811882 by Mile23, deepakaryan1988, Lars Toomre, yogen.prasad: Add...

Issue #1811882 by Mile23, deepakaryan1988, Lars Toomre, yogen.prasad: Add missing type hinting to Search module docblocks
parent 39e97f3b
...@@ -124,14 +124,14 @@ function search_preprocess_block(&$variables) { ...@@ -124,14 +124,14 @@ function search_preprocess_block(&$variables) {
* This function is meant for use by search page plugins, or for building a * This function is meant for use by search page plugins, or for building a
* user interface that lets users clear all or parts of the search index. * user interface that lets users clear all or parts of the search index.
* *
* @param $type * @param string|null $type
* (optional) The plugin ID or other machine-readable type for the items to * (optional) The plugin ID or other machine-readable type for the items to
* remove from the search index. If omitted, $sid and $langcode are ignored * remove from the search index. If omitted, $sid and $langcode are ignored
* and the entire search index is cleared. * and the entire search index is cleared.
* @param $sid * @param string|null $sid
* (optional) The ID of the items to remove from the search index. If * (optional) The ID of the items to remove from the search index. If
* omitted, all items matching $type are cleared, and $langcode is ignored. * omitted, all items matching $type are cleared, and $langcode is ignored.
* @param $langcode * @param string|null $langcode
* (optional) Language code of the item to remove from the search index. If * (optional) Language code of the item to remove from the search index. If
* omitted, all items matching $sid and $type are cleared. * omitted, all items matching $sid and $type are cleared.
*/ */
......
...@@ -196,9 +196,9 @@ class SearchQuery extends SelectExtender { ...@@ -196,9 +196,9 @@ class SearchQuery extends SelectExtender {
/** /**
* Sets the search query expression. * Sets the search query expression.
* *
* @param $expression * @param string $expression
* A search string, which can contain keywords and options. * A search string, which can contain keywords and options.
* @param $type * @param string $type
* The search type. This maps to {search_index}.type in the database. * The search type. This maps to {search_index}.type in the database.
* *
* @return $this * @return $this
...@@ -547,7 +547,7 @@ public function addScore($score, $arguments = array(), $multiply = FALSE) { ...@@ -547,7 +547,7 @@ public function addScore($score, $arguments = array(), $multiply = FALSE) {
* Error and warning conditions can apply. Call getStatus() after calling * Error and warning conditions can apply. Call getStatus() after calling
* this method to retrieve them. * this method to retrieve them.
* *
* @return * @return \Drupal\Core\Database\StatementInterface|null
* A query result set containing the results of the query. * A query result set containing the results of the query.
*/ */
public function execute() { public function execute() {
......
...@@ -264,11 +264,11 @@ function testMultilingualSearch() { ...@@ -264,11 +264,11 @@ function testMultilingualSearch() {
/** /**
* Verifies the indexing status counts. * Verifies the indexing status counts.
* *
* @param $remaining * @param int $remaining
* Count of remaining items to verify. * Count of remaining items to verify.
* @param $total * @param int $total
* Count of total items to verify. * Count of total items to verify.
* @param $message * @param string $message
* Message to use, something like "after updating the search index". * Message to use, something like "after updating the search index".
*/ */
protected function assertIndexCounts($remaining, $total, $message) { protected function assertIndexCounts($remaining, $total, $message) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment