diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php index cf5927b..a62ca1f 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php @@ -315,9 +315,9 @@ public function testConfigPoFile() { /** * Helper function: import a standalone .po file in a given language. * - * @param $contents + * @param string $contents * Contents of the .po file to import. - * @param $options + * @param array $options * Additional options to pass to the translation import form. */ public function importPoFile($contents, array $options = array()) { diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocalePluralFormatTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocalePluralFormatTest.php index 9dcf268..b7c2093 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocalePluralFormatTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocalePluralFormatTest.php @@ -276,9 +276,9 @@ public function testPluralEditExport() { /** * Imports a standalone .po file in a given language. * - * @param $contents + * @param string $contents * Contents of the .po file to import. - * @param $options + * @param array $options * Additional options to pass to the translation import form. */ public function importPoFile($contents, array $options = array()) { diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateBase.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateBase.php index 5fb52d2..4905255 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateBase.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateBase.php @@ -77,7 +77,7 @@ protected function setTranslationsDirectory($path) { /** * Adds a language. * - * @param $langcode + * @param string $langcode * The language code of the language to add. */ protected function addLanguage($langcode) { diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index c3319f2..484775e 100644 --- a/core/modules/locale/locale.bulk.inc +++ b/core/modules/locale/locale.bulk.inc @@ -25,7 +25,7 @@ * - 'finish_feedback': Whether or not to give feedback to the user when the * batch is finished. Optional, defaults to TRUE. * - * @param $force + * @param bool $force * (optional) Import all available files, even if they were imported before. * * @todo @@ -110,7 +110,7 @@ function locale_translate_get_interface_translation_files($projects = array(), $ /** * Build a locale batch from an array of files. * - * @param $files + * @param array $files * Array of file objects to import. * * @param array $options @@ -126,7 +126,7 @@ function locale_translate_get_interface_translation_files($projects = array(), $ * - 'finish_feedback': Whether or not to give feedback to the user when the * batch is finished. Optional, defaults to TRUE. * - * @return + * @return array|bool * A batch structure or FALSE if $files was empty. */ function locale_translate_batch_build($files, $options) { @@ -182,7 +182,7 @@ function locale_translate_batch_build($files, $options) { * - 'message': Alternative message to display during import. Note, this must * be sanitized text. * - * @param $context + * @param array $context * Contains a list of files imported. */ function locale_translate_batch_import($file, $options, &$context) { @@ -263,7 +263,7 @@ function locale_translate_batch_import($file, $options, &$context) { /** * Batch callback: Save data of imported files. * - * @param $context + * @param array $context * Contains a list of imported files. */ function locale_translate_batch_import_save($context) { @@ -396,10 +396,10 @@ function locale_translate_batch_finished($success, $results) { /** * Creates a file object and populates the timestamp property. * - * @param $filepath + * @param string $filepath * The filepath of a file to import. * - * @return + * @return object * An object representing the file. */ function locale_translate_file_create($filepath) { diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index 423c889..e0a3468 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -376,7 +376,7 @@ function template_preprocess_locale_translation_update_info(&$variables) { * * Default template: locale-translation-last-check.html.twig. * - * @param $variables + * @param array $variables * An associative array containing: * - last: The timestamp when the site last checked for available updates. *