diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index ce872d4..72b8b25 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -93,10 +93,10 @@
 /**
  * $config_directories key for active directory.
  *
- * @see config_get_config_directory()
- *
  * @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Drupal core no
  *   longer creates an active directory.
+ *
+ * @see config_get_config_directory()
  */
 const CONFIG_ACTIVE_DIRECTORY = 'active';
 
@@ -172,17 +172,17 @@ function config_get_config_directory($type) {
  * Calling drupal_get_filename('module', 'foo') will give you one of
  * the above, depending on where the module is located.
  *
- * @param $type
+ * @param string $type
  *   The type of the item; one of 'core', 'profile', 'module', 'theme', or
  *   'theme_engine'.
- * @param $name
+ * @param string $name
  *   The name of the item for which the filename is requested. Ignored for
  *   $type 'core'.
- * @param $filename
+ * @param string $filename
  *   The filename of the item if it is to be set explicitly rather
  *   than by consulting the database.
  *
- * @return
+ * @return string|null
  *   The filename of the requested item or NULL if the item is not found.
  */
 function drupal_get_filename($type, $name, $filename = NULL) {
@@ -240,14 +240,14 @@ function drupal_get_filename($type, $name, $filename = NULL) {
 /**
  * Returns the path to a system item (module, theme, etc.).
  *
- * @param $type
+ * @param string $type
  *   The type of the item; one of 'core', 'profile', 'module', 'theme', or
  *   'theme_engine'.
- * @param $name
+ * @param string $name
  *   The name of the item for which the path is requested. Ignored for
  *   $type 'core'.
  *
- * @return
+ * @return string|null
  *   The path to the requested item or an empty string if the item is not found.
  */
 function drupal_get_path($type, $name) {
@@ -299,12 +299,13 @@ function t($string, array $args = array(), array $options = array()) {
 /**
  * Formats a string for HTML display by replacing variable placeholders.
  *
- * @see \Drupal\Component\Utility\SafeMarkup::format()
- * @see t()
- * @ingroup sanitization
- *
  * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
  *   Use \Drupal\Component\Utility\SafeMarkup::format().
+ *
+ * @ingroup sanitization
+ *
+ * @see \Drupal\Component\Utility\SafeMarkup::format()
+ * @see t()
  */
 function format_string($string, array $args) {
   return SafeMarkup::format($string, $args);
@@ -328,16 +329,16 @@ function format_string($string, array $args) {
  * The function does not return FALSE for strings containing character codes
  * above U+10FFFF, even though these are prohibited by RFC 3629.
  *
- * @param $text
+ * @param string $text
  *   The text to check.
  *
  * @return bool
  *   TRUE if the text is valid UTF-8, FALSE if not.
  *
- * @see \Drupal\Component\Utility\Unicode::validateUtf8()
- *
  * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
  *   Use \Drupal\Component\Utility\Unicode::validateUtf8().
+ *
+ * @see \Drupal\Component\Utility\Unicode::validateUtf8()
  */
 function drupal_validate_utf8($text) {
   return Unicode::validateUtf8($text);
@@ -348,20 +349,20 @@ function drupal_validate_utf8($text) {
  *
  * This is a wrapper logging function which automatically decodes an exception.
  *
- * @param $type
+ * @param string $type
  *   The category to which this message belongs.
- * @param $exception
+ * @param Exception $exception
  *   The exception that is going to be logged.
- * @param $message
+ * @param string $message
  *   The message to store in the log. If empty, a text that contains all useful
  *   information about the passed-in exception is used.
- * @param $variables
+ * @param array $variables
  *   Array of variables to replace in the message on display or
  *   NULL if message is already translated or not possible to
  *   translate.
- * @param $severity
+ * @param int $severity
  *   The severity of the message, as per RFC 3164.
- * @param $link
+ * @param string $link
  *   A link to associate with the message.
  *
  * @see \Drupal\Core\Utility\Error::decodeException()
@@ -402,7 +403,7 @@ function watchdog_exception($type, Exception $exception, $message = NULL, $varia
  *   supported:
  *   - 'status'
  *   - 'warning'
- *   - 'error'
+ *   - 'error'.
  * @param bool $repeat
  *   (optional) If this is FALSE and the message is already set, then the
  *   message won't be repeated. Defaults to FALSE.
@@ -414,8 +415,8 @@ function watchdog_exception($type, Exception $exception, $message = NULL, $varia
  *   - safe: Boolean indicating whether the message string has been marked as
  *     safe. Non-safe strings will be escaped automatically.
  *   - message: The message string.
- *   So, the following is an example of the full return array structure:
- *   @code
+ *  So, the following is an example of the full return array structure:
+ *  @code
  *     array(
  *       'status' => array(
  *         array(
@@ -428,8 +429,8 @@ function watchdog_exception($type, Exception $exception, $message = NULL, $varia
  *         ),
  *       ),
  *     );
- *   @endcode
- *   If there are no messages set, the function returns NULL.
+ *  @endcode
+ *  If there are no messages set, the function returns NULL.
  *
  * @see drupal_get_messages()
  * @see status-messages.html.twig
@@ -525,15 +526,15 @@ function drupal_get_user_timezone() {
 /**
  * Provides custom PHP error handling.
  *
- * @param $error_level
+ * @param int $error_level
  *   The level of the error raised.
- * @param $message
+ * @param string $message
  *   The error message.
- * @param $filename
+ * @param string $filename
  *   The filename that the error was raised in.
- * @param $line
+ * @param int $line
  *   The line number the error was raised at.
- * @param $context
+ * @param array $context
  *   An array that points to the active symbol table at the point the error
  *   occurred.
  */
@@ -847,19 +848,19 @@ function drupal_classloader_register($name, $path) {
  * }
  * @endcode
  *
- * @param $name
+ * @param string $name
  *   Globally unique name for the variable. For a function with only one static,
  *   variable, the function name (e.g. via the PHP magic __FUNCTION__ constant)
  *   is recommended. For a function with multiple static variables add a
  *   distinguishing suffix to the function name for each one.
- * @param $default_value
+ * @param mixed|null $default_value
  *   Optional default value.
- * @param $reset
+ * @param bool $reset
  *   TRUE to reset one or all variables(s). This parameter is only used
  *   internally and should not be passed in; use drupal_static_reset() instead.
  *   (This function's return value should not be used when TRUE is passed in.)
  *
- * @return
+ * @return mixed
  *   Returns a variable by reference.
  *
  * @see drupal_static_reset()
@@ -900,7 +901,7 @@ function &drupal_static($name, $default_value = NULL, $reset = FALSE) {
 /**
  * Resets one or all centrally stored static variable(s).
  *
- * @param $name
+ * @param string $name
  *   Name of the static variable to reset. Omit to reset all variables.
  *   Resetting all variables should only be used, for example, for running
  *   unit tests with a clean environment.
@@ -912,6 +913,12 @@ function drupal_static_reset($name = NULL) {
 /**
  * Formats text for emphasized display in a placeholder inside a sentence.
  *
+ * @param string $text
+ *   The text to format (plain-text).
+ *
+ * @return string
+ *   The formatted text (html).
+ *
  * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use
  *   \Drupal\Component\Utility\SafeMarkup::format() or Twig's "placeholder"
  *   filter instead. Note this method should not be used to simply emphasize a
@@ -930,16 +937,18 @@ function drupal_placeholder($text) {
  * Wrapper for register_shutdown_function() that catches thrown exceptions to
  * avoid "Exception thrown without a stack frame in Unknown".
  *
- * @param $callback
- *   The shutdown function to register.
+ * @param callback|null $callback
+ *   The shutdown function to register, or NULL, if no additional function
+ * should be registered.
  * @param ...
  *   Additional arguments to pass to the shutdown function.
  *
- * @return
+ * @return callback[]
  *   Array of shutdown functions to be executed.
  *
- * @see register_shutdown_function()
  * @ingroup php_wrappers
+ *
+ * @see register_shutdown_function()
  */
 function &drupal_register_shutdown_function($callback = NULL) {
   // We cannot use drupal_static() here because the static cache is reset during
@@ -954,7 +963,7 @@ function &drupal_register_shutdown_function($callback = NULL) {
     $args = func_get_args();
     // Remove $callback from the arguments.
     unset($args[0]);
-    // Save callback and arguments
+    // Save callback and arguments.
     $callbacks[] = array('callback' => $callback, 'arguments' => $args);
   }
   return $callbacks;
