From fbd67904779f40fe17838246af10c8700854c920 Mon Sep 17 00:00:00 2001 From: webchick <drupal@webchick.net> Date: Sat, 2 May 2015 16:05:08 -0700 Subject: [PATCH] Issue #1811882 by Mile23, deepakaryan1988, Lars Toomre, yogen.prasad: Add missing type hinting to Search module docblocks --- core/modules/search/search.module | 6 +++--- core/modules/search/src/SearchQuery.php | 6 +++--- .../search/src/Tests/SearchMultilingualEntityTest.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/modules/search/search.module b/core/modules/search/search.module index 4c3336d179c6..62db41130fb2 100644 --- a/core/modules/search/search.module +++ b/core/modules/search/search.module @@ -124,14 +124,14 @@ function search_preprocess_block(&$variables) { * 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. * - * @param $type + * @param string|null $type * (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 * 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 * 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 * omitted, all items matching $sid and $type are cleared. */ diff --git a/core/modules/search/src/SearchQuery.php b/core/modules/search/src/SearchQuery.php index 375ca2ab4428..3a62fb047518 100644 --- a/core/modules/search/src/SearchQuery.php +++ b/core/modules/search/src/SearchQuery.php @@ -196,9 +196,9 @@ class SearchQuery extends SelectExtender { /** * Sets the search query expression. * - * @param $expression + * @param string $expression * 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. * * @return $this @@ -547,7 +547,7 @@ public function addScore($score, $arguments = array(), $multiply = FALSE) { * Error and warning conditions can apply. Call getStatus() after calling * this method to retrieve them. * - * @return + * @return \Drupal\Core\Database\StatementInterface|null * A query result set containing the results of the query. */ public function execute() { diff --git a/core/modules/search/src/Tests/SearchMultilingualEntityTest.php b/core/modules/search/src/Tests/SearchMultilingualEntityTest.php index ad2445f91c22..aec10e01b270 100644 --- a/core/modules/search/src/Tests/SearchMultilingualEntityTest.php +++ b/core/modules/search/src/Tests/SearchMultilingualEntityTest.php @@ -264,11 +264,11 @@ function testMultilingualSearch() { /** * Verifies the indexing status counts. * - * @param $remaining + * @param int $remaining * Count of remaining items to verify. - * @param $total + * @param int $total * Count of total items to verify. - * @param $message + * @param string $message * Message to use, something like "after updating the search index". */ protected function assertIndexCounts($remaining, $total, $message) { -- GitLab