diff --git a/core/modules/locale/locale.batch.inc b/core/modules/locale/locale.batch.inc index 31f8002..444c911 100644 --- a/core/modules/locale/locale.batch.inc +++ b/core/modules/locale/locale.batch.inc @@ -25,7 +25,7 @@ * @param string $langcode * Language code of the language for which to check the translation. * @param array $options - * An array with options that can have the following elements: + * Optional, an array with options that can have the following elements: * - 'finish_feedback': Whether or not to give feedback to the user when the * batch is finished. Optional, defaults to TRUE. * - 'use_remote': Whether or not to check the remote translation file. @@ -33,7 +33,7 @@ * @param array $context * The batch context. */ -function locale_translation_batch_status_check($project, $langcode, array $options, &$context) { +function locale_translation_batch_status_check($project, $langcode, $options = array(), &$context) { $failure = $checked = FALSE; $options += array( 'finish_feedback' => TRUE, diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index 4ba46de..99c68d6 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 bool $force + * @param $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 array $files + * @param $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 array|bool + * @return * A batch structure or FALSE if $files was empty. */ function locale_translate_batch_build($files, $options) { @@ -183,7 +183,7 @@ function locale_translate_batch_build($files, $options) { * - 'message': Alternative message to display during import. Note, this must * be sanitized text. * - * @param array $context + * @param $context * Contains a list of files imported. */ function locale_translate_batch_import($file, $options, &$context) { @@ -264,7 +264,7 @@ function locale_translate_batch_import($file, $options, &$context) { /** * Batch callback: Save data of imported files. * - * @param array $context + * @param $context * Contains a list of imported files. */ function locale_translate_batch_import_save($context) { @@ -397,10 +397,10 @@ function locale_translate_batch_finished($success, $results) { /** * Creates a file object and populates the timestamp property. * - * @param string $filepath + * @param $filepath * The filepath of a file to import. * - * @return object + * @return * 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 5d2f211..2aefe71 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -375,7 +375,7 @@ function template_preprocess_locale_translation_update_info(&$variables) { * * Default template: locale-translation-last-check.html.twig. * - * @param array $variables + * @param $variables * An associative array containing: * - last: The timestamp when the site last checked for available updates. * diff --git a/core/modules/locale/locale.translation.inc b/core/modules/locale/locale.translation.inc index 1a09c6a..6cf8343 100644 --- a/core/modules/locale/locale.translation.inc +++ b/core/modules/locale/locale.translation.inc @@ -158,7 +158,7 @@ function locale_translation_build_sources($projects = array(), $langcodes = arra * @param object $source * Translation source object. * - * @return object + * @return stdClass * Source file object of the po file, updated with: * - "uri": File name and path. * - "timestamp": Last updated time of the po file. diff --git a/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php b/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php index a62ca1f..cf5927b 100644 --- a/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php +++ b/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php @@ -315,9 +315,9 @@ public function testConfigPoFile() { /** * Helper function: import a standalone .po file in a given language. * - * @param string $contents + * @param $contents * Contents of the .po file to import. - * @param array $options + * @param $options * Additional options to pass to the translation import form. */ public function importPoFile($contents, array $options = array()) { diff --git a/core/modules/locale/src/Tests/LocalePluralFormatTest.php b/core/modules/locale/src/Tests/LocalePluralFormatTest.php index b7c2093..9dcf268 100644 --- a/core/modules/locale/src/Tests/LocalePluralFormatTest.php +++ b/core/modules/locale/src/Tests/LocalePluralFormatTest.php @@ -276,9 +276,9 @@ public function testPluralEditExport() { /** * Imports a standalone .po file in a given language. * - * @param string $contents + * @param $contents * Contents of the .po file to import. - * @param array $options + * @param $options * Additional options to pass to the translation import form. */ public function importPoFile($contents, array $options = array()) { diff --git a/core/modules/locale/src/Tests/LocaleUpdateBase.php b/core/modules/locale/src/Tests/LocaleUpdateBase.php index 4905255..5fb52d2 100644 --- a/core/modules/locale/src/Tests/LocaleUpdateBase.php +++ b/core/modules/locale/src/Tests/LocaleUpdateBase.php @@ -77,7 +77,7 @@ protected function setTranslationsDirectory($path) { /** * Adds a language. * - * @param string $langcode + * @param $langcode * The language code of the language to add. */ protected function addLanguage($langcode) {