Verified Commit 452bf180 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2941148 by quietone, bruno.bicudo, ravi.shankar, Sweetchuck,...

Issue #2941148 by quietone, bruno.bicudo, ravi.shankar, Sweetchuck, beatrizrodrigues, lucienchalom, VitaliyB98, WagnerMelo, sophiavs, ankitjain28may, daffie, longwave, Sutharsan, borisson_, cosmicdreams, heykarthikwithu, catch: Fix Drupal.Commenting.FunctionComment.MissingReturnType
parent b083e407
Loading
Loading
Loading
Loading
+4 −4
Changes for core/includes/common.inc: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ function drupal_attach_tabledrag(&$element, array $options) {
 * @param $element
 *   The element to be rendered.
 *
 * @return
 * @return \Drupal\Component\Render\MarkupInterface|null
 *   The rendered element.
 *
 * @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use
@@ -429,7 +429,7 @@ function render(&$element) {
 * @param $element
 *   The element to be hidden.
 *
 * @return
 * @return array
 *   The element.
 *
 * @see \Drupal\Core\Render\RendererInterface
@@ -459,7 +459,7 @@ function hide(&$element) {
 * @param $element
 *   The element to be shown.
 *
 * @return
 * @return array
 *   The element.
 *
 * @see \Drupal\Core\Render\RendererInterface
@@ -664,7 +664,7 @@ function drupal_get_updaters() {
/**
 * Assembles the Drupal FileTransfer registry.
 *
 * @return
 * @return array
 *   The Drupal FileTransfer class registry.
 *
 * @see \Drupal\Core\FileTransfer\FileTransfer
+1 −1
Changes for core/includes/errors.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ function _drupal_error_handler_real($error_level, $message, $filename, $line) {
 * @param $error
 *   Optional error to examine for ERROR_REPORTING_DISPLAY_SOME.
 *
 * @return
 * @return bool
 *   TRUE if an error should be displayed.
 */
function error_displayable($error = NULL) {
+1 −1
Changes for core/includes/file.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ function file_munge_filename($filename, $extensions, $alerts = TRUE) {
 * @param $filename
 *   String with the filename to be unmunged.
 *
 * @return
 * @return string
 *   An unmunged filename string.
 *
 * @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use
+2 −2
Changes for core/includes/form.inc: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ function form_select_options($element, $choices = NULL) {
 * @param $key
 *   The key to look for.
 *
 * @return
 * @return array|bool
 *   An array of indexes that match the given $key. Array will be
 *   empty if no elements were found. FALSE if optgroups were found.
 */
@@ -1011,7 +1011,7 @@ function _batch_populate_queue(&$batch, $set_id) {
 * @param $batch_set
 *   The batch set.
 *
 * @return
 * @return \Drupal\Core\Queue\QueueInterface|null
 *   The queue object.
 */
function _batch_queue($batch_set) {
+16 −19
Changes for core/includes/install.core.inc: 16 added lines, 19 removed lines.
Original line number Diff line number Diff line
@@ -551,7 +551,7 @@ function install_begin_request($class_loader, &$install_state) {
 *   (optional) A callback to allow command line processes to update a progress
 *   bar. The callback is passed the $install_state variable.
 *
 * @return
 * @return array|null
 *   HTML output from the last completed task.
 */
function install_run_tasks(&$install_state, callable $callback = NULL) {
@@ -608,7 +608,7 @@ function install_run_tasks(&$install_state, callable $callback = NULL) {
 *   An array of information about the current installation state. This is
 *   passed in by reference so that it can be modified by the task.
 *
 * @return
 * @return array|null
 *   The output of the task function, if there is any.
 */
function install_run_task($task, &$install_state) {
@@ -711,7 +711,7 @@ function install_run_task($task, &$install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return array
 *   A list of tasks to be performed, with associated metadata.
 */
function install_tasks_to_perform($install_state) {
@@ -747,7 +747,7 @@ function install_tasks_to_perform($install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return array
 *   A list of tasks, with associated metadata as returned by
 *   hook_install_tasks().
 */
@@ -908,7 +908,7 @@ function install_tasks($install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return array
 *   A list of tasks, with keys equal to the machine-readable task name and
 *   values equal to the name that should be displayed.
 *
@@ -981,7 +981,7 @@ function install_get_form($form_id, array &$install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return string
 *   The URL to redirect to.
 *
 * @see install_full_redirect_url()
@@ -996,7 +996,7 @@ function install_redirect_url($install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return string
 *   The complete URL to redirect to.
 *
 * @see install_redirect_url()
@@ -1074,7 +1074,7 @@ function install_display_output($output, $install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return array
 *   A themed status report, or an exception if there are requirement errors.
 */
function install_verify_requirements(&$install_state) {
@@ -1120,7 +1120,7 @@ function install_base_system(&$install_state) {
/**
 * Verifies and returns the last installation task that was completed.
 *
 * @return
 * @return null|string
 *   The last completed task, if there is one. An exception is thrown if Drupal
 *   is already installed.
 */
@@ -1224,7 +1224,7 @@ function install_database_errors($database, $settings_file) {
 *   profile will be added here, if it was not already selected previously, as
 *   will a list of all available profiles.
 *
 * @return
 * @return array|null
 *   For interactive installations, a form allowing the profile to be selected,
 *   if the user has a choice that needs to be made. Otherwise, an exception is
 *   thrown if a profile cannot be chosen automatically.
@@ -1312,7 +1312,7 @@ function _install_select_profile(&$install_state) {
/**
 * Finds all .po files that are useful to the installer.
 *
 * @return
 * @return array
 *   An associative array of file URIs keyed by language code. URIs as
 *   returned by FileSystemInterface::scanDirectory().
 *
@@ -1343,7 +1343,7 @@ function install_find_translations() {
 *   langcode will be added here, if it was not already selected previously, as
 *   will a list of all available languages.
 *
 * @return
 * @return array|null
 *   For interactive installations, a form or other page output allowing the
 *   language to be selected or providing information about language selection,
 *   if a language has not been chosen. Otherwise, an exception is thrown if a
@@ -1560,7 +1560,7 @@ function install_bootstrap_full() {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return array
 *   The batch definition.
 */
function install_profile_modules(&$install_state) {
@@ -1669,7 +1669,7 @@ function install_install_profile(&$install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return array
 *   The batch definition, if there are language files to download.
 */
function install_download_additional_translations_operations(&$install_state) {
@@ -1720,7 +1720,7 @@ function install_download_additional_translations_operations(&$install_state) {
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 * @return array|null
 *   The batch definition, if there are language files to import.
 */
function install_import_translations(&$install_state) {
@@ -1850,9 +1850,6 @@ function install_finish_translations(&$install_state) {
 *
 * @param $install_state
 *   An array of information about the current installation state.
 *
 * @return
 *   A message informing the user that the installation is complete.
 */
function install_finished(&$install_state) {
  $profile = $install_state['parameters']['profile'];
@@ -2262,7 +2259,7 @@ function install_check_requirements($install_state) {
 *   An array of requirements, in the same format as is returned by
 *   hook_requirements().
 *
 * @return
 * @return array|null
 *   A themed status report, or an exception if there are requirement errors.
 *   If there are only requirement warnings, a themed status report is shown
 *   initially, but the user is allowed to bypass it by providing 'continue=1'
Loading