From ae8270742ed6043a7396f6b27ddf1a1caee2e7d9 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Wed, 17 Feb 2016 11:25:41 +0900
Subject: [PATCH] Issue #1811214 by Mile23, naveenvalecha, tisteegz: Add
 missing type hinting to Language module docblocks

---
 core/modules/language/language.api.php                    | 6 +++---
 .../language/src/ConfigurableLanguageManagerInterface.php | 2 +-
 .../src/EventSubscriber/LanguageRequestSubscriber.php     | 2 +-
 .../language/src/HttpKernel/PathProcessorLanguage.php     | 2 +-
 core/modules/language/src/LanguageListBuilder.php         | 2 +-
 core/modules/language/src/LanguageNegotiatorInterface.php | 6 +++---
 .../language/src/Tests/EntityDefaultLanguageTest.php      | 8 ++++----
 7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/core/modules/language/language.api.php b/core/modules/language/language.api.php
index 1e244d0e9b9c..aaaa5a3dd6ae 100644
--- a/core/modules/language/language.api.php
+++ b/core/modules/language/language.api.php
@@ -13,7 +13,7 @@
 /**
  * Define language types.
  *
- * @return
+ * @return array
  *   An associative array of language type definitions. The keys are the
  *   identifiers, which are also used as names for global variables representing
  *   the types in the bootstrap phase. The values are associative arrays that
@@ -51,7 +51,7 @@ function hook_language_types_info() {
 /**
  * Perform alterations on language types.
  *
- * @param $language_types
+ * @param array $language_types
  *   Array of language type definitions.
  *
  * @see hook_language_types_info()
@@ -66,7 +66,7 @@ function hook_language_types_info_alter(array &$language_types) {
 /**
  * Perform alterations on language negotiation methods.
  *
- * @param $negotiation_info
+ * @param array $negotiation_info
  *   Array of language negotiation method definitions.
  *
  * @ingroup language_negotiation
diff --git a/core/modules/language/src/ConfigurableLanguageManagerInterface.php b/core/modules/language/src/ConfigurableLanguageManagerInterface.php
index 57d365df795f..5169330e0db9 100644
--- a/core/modules/language/src/ConfigurableLanguageManagerInterface.php
+++ b/core/modules/language/src/ConfigurableLanguageManagerInterface.php
@@ -51,7 +51,7 @@ public function getDefinedLanguageTypes();
   /**
    * Stores language types configuration.
    *
-   * @param array
+   * @param array $config
    *   An indexed array with the following keys_
    *   - configurable: an array of configurable language type names.
    *   - all: an array of all the defined language type names.
diff --git a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
index c3218ff6c6f0..287d4db76caf 100644
--- a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
+++ b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
@@ -54,7 +54,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
    *
    * @param \Drupal\language\ConfigurableLanguageManagerInterface $language_manager
    *   The language manager service.
-   * @param \Drupal\language\LanguageNegotiatorInterface
+   * @param \Drupal\language\LanguageNegotiatorInterface $negotiator
    *   The language negotiator.
    * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation;
    *   The translation service.
diff --git a/core/modules/language/src/HttpKernel/PathProcessorLanguage.php b/core/modules/language/src/HttpKernel/PathProcessorLanguage.php
index aa5870915aad..2bd5e2592f49 100644
--- a/core/modules/language/src/HttpKernel/PathProcessorLanguage.php
+++ b/core/modules/language/src/HttpKernel/PathProcessorLanguage.php
@@ -73,7 +73,7 @@ class PathProcessorLanguage implements InboundPathProcessorInterface, OutboundPa
    *   A config factory object for retrieving configuration settings.
    * @param \Drupal\language\ConfigurableLanguageManagerInterface $language_manager
    *   The configurable language manager.
-   * @param \Drupal\language\LanguageNegotiatorInterface
+   * @param \Drupal\language\LanguageNegotiatorInterface $negotiator
    *   The language negotiator.
    * @param \Drupal\Core\Session\AccountInterface $current_user
    *   The current active user.
diff --git a/core/modules/language/src/LanguageListBuilder.php b/core/modules/language/src/LanguageListBuilder.php
index 1f95f32f99aa..fe4e7a12fd3e 100644
--- a/core/modules/language/src/LanguageListBuilder.php
+++ b/core/modules/language/src/LanguageListBuilder.php
@@ -62,7 +62,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeI
    *   The entity type definition.
    * @param \Drupal\Core\Entity\EntityStorageInterface $storage
    *   The entity storage controller class.
-   * @param \Drupal\Core\Language\LanguageManagerInterface
+   * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
    *   The language manager.
    * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    *   The factory for configuration objects.
diff --git a/core/modules/language/src/LanguageNegotiatorInterface.php b/core/modules/language/src/LanguageNegotiatorInterface.php
index 97b064601701..a5ef8a01c313 100644
--- a/core/modules/language/src/LanguageNegotiatorInterface.php
+++ b/core/modules/language/src/LanguageNegotiatorInterface.php
@@ -160,7 +160,7 @@ public function getNegotiationMethodInstance($method_id);
   /**
    * Returns the ID of the language type's primary language negotiation method.
    *
-   * @param $type
+   * @param string $type
    *   The language type.
    *
    * @return string
@@ -172,9 +172,9 @@ public function getPrimaryNegotiationMethod($type);
   /**
    * Checks whether a language negotiation method is enabled for a language type.
    *
-   * @param $method_id
+   * @param string $method_id
    *   The language negotiation method ID.
-   * @param $type
+   * @param string $type
    *   (optional) The language type. If none is passed, all the configurable
    *   language types will be inspected.
    *
diff --git a/core/modules/language/src/Tests/EntityDefaultLanguageTest.php b/core/modules/language/src/Tests/EntityDefaultLanguageTest.php
index 9479d580f1d6..5972374c0bc2 100644
--- a/core/modules/language/src/Tests/EntityDefaultLanguageTest.php
+++ b/core/modules/language/src/Tests/EntityDefaultLanguageTest.php
@@ -100,9 +100,9 @@ public function testEntityTranslationDefaultLanguageViaCode() {
   /**
    * Creates a new node content type.
    *
-   * @param name
+   * @param string $name
    *   The content type name.
-   * @param $langcode
+   * @param string $langcode
    *   Default language code of the nodes of this type.
    */
   protected function createContentType($name, $langcode) {
@@ -123,9 +123,9 @@ protected function createContentType($name, $langcode) {
   /**
    * Creates a new node of given type and language using Entity API.
    *
-   * @param $type
+   * @param string $type
    *   The node content type.
-   * @param $langcode
+   * @param string $langcode
    *   (optional) Language code to pass to entity create.
    *
    * @return \Drupal\node\NodeInterface
-- 
GitLab