From 6889e50f17fd95ceabfda4fadc4a112b87b1e6e9 Mon Sep 17 00:00:00 2001
From: webchick <drupal@webchick.net>
Date: Sat, 2 May 2015 16:06:54 -0700
Subject: [PATCH] Issue #1811334 by Mile23, deepakaryan1988, Lars Toomre,
 yogen.prasad: Add missing type hinting to Forum module docblocks

---
 core/modules/forum/src/Tests/ForumTest.php | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/core/modules/forum/src/Tests/ForumTest.php b/core/modules/forum/src/Tests/ForumTest.php
index 53359c1c9534..9440179f2e5f 100644
--- a/core/modules/forum/src/Tests/ForumTest.php
+++ b/core/modules/forum/src/Tests/ForumTest.php
@@ -392,12 +392,12 @@ function editForumVocabulary() {
   /**
    * Creates a forum container or a forum.
    *
-   * @param $type
+   * @param string $type
    *   The forum type (forum container or forum).
-   * @param $parent
+   * @param int $parent
    *   The forum parent. This defaults to 0, indicating a root forum.
    *
-   * @return
+   * @return \Drupal\Core\Database\StatementInterface
    *   The created taxonomy term data.
    */
   function createForum($type, $parent = 0) {
@@ -441,7 +441,7 @@ function createForum($type, $parent = 0) {
   /**
    * Deletes a forum.
    *
-   * @param $tid
+   * @param int $tid
    *   The forum ID.
    */
   function deleteForum($tid) {
@@ -461,9 +461,9 @@ function deleteForum($tid) {
   /**
    * Runs basic tests on the indicated user.
    *
-   * @param $user
+   * @param \Drupal\Core\Session\AccountInterface $user
    *   The logged in user.
-   * @param $admin
+   * @param bool $admin
    *   User has 'access administration pages' privilege.
    */
   private function doBasicTests($user, $admin) {
@@ -565,9 +565,9 @@ function createForumTopic($forum, $container = FALSE) {
    *
    * @param \Drupal\Core\Entity\EntityInterface $node
    *   The node being checked.
-   * @param $admin
+   * @param bool $admin
    *   Boolean to indicate whether the user can 'access administration pages'.
-   * @param $response
+   * @param int $response
    *   The expected HTTP response code.
    */
   private function verifyForums(EntityInterface $node, $admin, $response = 200) {
@@ -639,9 +639,9 @@ private function verifyForums(EntityInterface $node, $admin, $response = 200) {
   /**
    * Verifies the display of a forum page.
    *
-   * @param $forum
+   * @param array $forum
    *   A row from the taxonomy_term_data table in an array.
-   * @param $parent
+   * @param array $parent
    *   (optional) An array representing the forum's parent.
    */
   private function verifyForumView($forum, $parent = NULL) {
-- 
GitLab