diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index 769d480..5e81cf4 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -73,7 +73,7 @@ function file_element_info() {
     '#multiple' => FALSE,
     '#extended' => FALSE,
     '#attached' => array(
-      'library' => array(array('file','drupal.file')),
+      'library' => array(array('file', 'drupal.file')),
     ),
   );
   return $types;
@@ -84,7 +84,7 @@ function file_element_info() {
  *
  * @param array $fids
  *   (optional) An array of entity IDs. If omitted, all entities are loaded.
- * @param $reset
+ * @param bool $reset
  *   Whether to reset the internal file_load_multiple() cache.
  *
  * @return array
@@ -102,9 +102,9 @@ function file_load_multiple(array $fids = NULL, $reset = FALSE) {
 /**
  * Loads a single file entity from the database.
  *
- * @param $fid
+ * @param int $fid
  *   A file ID.
- * @param $reset
+ * @param bool $reset
  *   Whether to reset the internal file_load_multiple() cache.
  *
  * @return \Drupal\file\FileInterface
@@ -121,6 +121,7 @@ function file_load($fid, $reset = FALSE) {
  * Returns the file usage service.
  *
  * @return Drupal\file\FileUsage\FileUsageInterface.
+ *   A file usage service.
  */
 function file_usage() {
   return \Drupal::service('file.usage');
@@ -143,10 +144,10 @@ function file_usage() {
  *
  * @param Drupal\file\File $source
  *   A file entity.
- * @param $destination
+ * @param string $destination
  *   A string containing the destination that $source should be copied to.
  *   This must be a stream wrapper URI.
- * @param $replace
+ * @param constant $replace
  *   Replace behavior when the destination file already exists:
  *   - FILE_EXISTS_REPLACE - Replace the existing file. If a managed file with
  *       the destination name exists then its database entry will be updated. If
@@ -155,7 +156,7 @@ function file_usage() {
  *       unique.
  *   - FILE_EXISTS_ERROR - Do nothing and return FALSE.
  *
- * @return
+ * @return \Drupal\file\FileInterface
  *   File object if the copy is successful, or FALSE in the event of an error.
  *
  * @see file_unmanaged_copy()
@@ -164,7 +165,11 @@ function file_usage() {
 function file_copy(File $source, $destination = NULL, $replace = FILE_EXISTS_RENAME) {
   if (!file_valid_uri($destination)) {
     if (($realpath = drupal_realpath($source->getFileUri())) !== FALSE) {
-      watchdog('file', 'File %file (%realpath) could not be copied because the destination %destination is invalid. This is often caused by improper use of file_copy() or a missing stream wrapper.', array('%file' => $source->getFileUri(), '%realpath' => $realpath, '%destination' => $destination));
+      watchdog('file', 'File %file (%realpath) could not be copied because the destination %destination is invalid. This is often caused by improper use of file_copy() or a missing stream wrapper.', array(
+        '%file' => $source->getFileUri(),
+        '%realpath' => $realpath,
+        '%destination' => $destination)
+      );
     }
     else {
       watchdog('file', 'File %file could not be copied because the destination %destination is invalid. This is often caused by improper use of file_copy() or a missing stream wrapper.', array('%file' => $source->getFileUri(), '%destination' => $destination));
@@ -215,10 +220,10 @@ function file_copy(File $source, $destination = NULL, $replace = FILE_EXISTS_REN
  *
  * @param Drupal\file\File $source
  *   A file entity.
- * @param $destination
+ * @param string $destination
  *   A string containing the destination that $source should be moved to.
  *   This must be a stream wrapper URI.
- * @param $replace
+ * @param constant $replace
  *   Replace behavior when the destination file already exists:
  *   - FILE_EXISTS_REPLACE - Replace the existing file. If a managed file with
  *       the destination name exists then its database entry will be updated and
@@ -238,7 +243,11 @@ function file_copy(File $source, $destination = NULL, $replace = FILE_EXISTS_REN
 function file_move(File $source, $destination = NULL, $replace = FILE_EXISTS_RENAME) {
   if (!file_valid_uri($destination)) {
     if (($realpath = drupal_realpath($source->getFileUri())) !== FALSE) {
-      watchdog('file', 'File %file (%realpath) could not be moved because the destination %destination is invalid. This may be caused by improper use of file_move() or a missing stream wrapper.', array('%file' => $source->getFileUri(), '%realpath' => $realpath, '%destination' => $destination));
+      watchdog('file', 'File %file (%realpath) could not be moved because the destination %destination is invalid. This may be caused by improper use of file_move() or a missing stream wrapper.', array(
+        '%file' => $source->getFileUri(),
+        '%realpath' => $realpath,
+        '%destination' => $destination)
+      );
     }
     else {
       watchdog('file', 'File %file could not be moved because the destination %destination is invalid. This may be caused by improper use of file_move() or a missing stream wrapper.', array('%file' => $source->getFileUri(), '%destination' => $destination));
@@ -290,7 +299,7 @@ function file_move(File $source, $destination = NULL, $replace = FILE_EXISTS_REN
  *
  * @param Drupal\file\File $file
  *   A file entity.
- * @param $validators
+ * @param array $validators
  *   An optional, associative array of callback functions used to validate the
  *   file. The keys are function names and the values arrays of callback
  *   parameters which will be passed in after the file entity. The
@@ -298,7 +307,7 @@ function file_move(File $source, $destination = NULL, $replace = FILE_EXISTS_REN
  *   indicates that the file passed validation. The functions will be called in
  *   the order specified.
  *
- * @return
+ * @return array
  *   An array containing validation error messages.
  *
  * @see hook_file_validate()
@@ -323,7 +332,7 @@ function file_validate(File $file, $validators = array()) {
  * @param Drupal\file\File $file
  *   A file entity.
  *
- * @return
+ * @return array
  *   An array. If the file name is too long, it will contain an error message.
  */
 function file_validate_name_length(File $file) {
@@ -343,10 +352,10 @@ function file_validate_name_length(File $file) {
  *
  * @param Drupal\file\File $file
  *   A file entity.
- * @param $extensions
+ * @param string $extensions
  *   A string with a space separated list of allowed extensions.
  *
- * @return
+ * @return array
  *   An array. If the file extension is not allowed, it will contain an error
  *   message.
  *
@@ -367,14 +376,14 @@ function file_validate_extensions(File $file, $extensions) {
  *
  * @param Drupal\file\File $file
  *   A file entity.
- * @param $file_limit
+ * @param int $file_limit
  *   An integer specifying the maximum file size in bytes. Zero indicates that
  *   no limit should be enforced.
- * @param $user_limit
+ * @param int $user_limit
  *   An integer specifying the maximum number of bytes the user is allowed.
  *   Zero indicates that no limit should be enforced.
  *
- * @return
+ * @return array
  *   An array. If the file size exceeds limits, it will contain an error
  *   message.
  *
@@ -402,7 +411,7 @@ function file_validate_size(File $file, $file_limit = 0, $user_limit = 0) {
  * @param Drupal\file\File $file
  *   A file entity.
  *
- * @return
+ * @return array
  *   An array. If the file is not an image, it will contain an error message.
  *
  * @see hook_file_validate()
@@ -426,16 +435,16 @@ function file_validate_is_image(File $file) {
  *
  * @param Drupal\file\File $file
  *   A file entity. This function may resize the file affecting its size.
- * @param $maximum_dimensions
+ * @param string $maximum_dimensions
  *   An optional string in the form WIDTHxHEIGHT e.g. '640x480' or '85x85'. If
  *   an image toolkit is installed the image will be resized down to these
  *   dimensions. A value of 0 indicates no restriction on size, so resizing
  *   will be attempted.
- * @param $minimum_dimensions
+ * @param string $minimum_dimensions
  *   An optional string in the form WIDTHxHEIGHT. This will check that the
  *   image meets a minimum size. A value of 0 indicates no restriction.
  *
- * @return
+ * @return array
  *   An array. If the file is an image and did not meet the requirements, it
  *   will contain an error message.
  *
@@ -481,13 +490,13 @@ function file_validate_image_resolution(File $file, $maximum_dimensions = 0, $mi
 /**
  * Saves a file to the specified destination and creates a database entry.
  *
- * @param $data
+ * @param string $data
  *   A string containing the contents of the file.
- * @param $destination
+ * @param string $destination
  *   A string containing the destination URI. This must be a stream wrapper URI.
  *   If no value is provided, a randomized name will be generated and the file
  *   will be saved using Drupal's default files scheme, usually "public://".
- * @param $replace
+ * @param constant $replace
  *   Replace behavior when the destination file already exists:
  *   - FILE_EXISTS_REPLACE - Replace the existing file. If a managed file with
  *       the destination name exists then its database entry will be updated. If
@@ -547,7 +556,7 @@ function file_save_data($data, $destination = NULL, $replace = FILE_EXISTS_RENAM
  * @param Drupal\file\File $file
  *   A file entity.
  *
- * @return
+ * @return array
  *   An associative array of headers, as expected by
  *   \Symfony\Component\HttpFoundation\StreamedResponse.
  */
@@ -568,7 +577,12 @@ function file_theme() {
   return array(
     // file.module.
     'file_link' => array(
-      'variables' => array('file' => NULL, 'icon_directory' => NULL, 'description' => NULL, 'attributes' => array()),
+      'variables' => array(
+        'file' => NULL,
+        'icon_directory' => NULL,
+        'description' => NULL,
+        'attributes' => array(),
+      ),
     ),
     'file_icon' => array(
       'variables' => array('file' => NULL, 'icon_directory' => NULL),
@@ -576,7 +590,6 @@ function file_theme() {
     'file_managed_file' => array(
       'render element' => 'element',
     ),
-
     // file.field.inc.
     'file_widget' => array(
       'render element' => 'element',
@@ -588,7 +601,11 @@ function file_theme() {
       'variables' => array('items' => NULL),
     ),
     'file_upload_help' => array(
-      'variables' => array('description' => NULL, 'upload_validators' => NULL, 'cardinality' => NULL),
+      'variables' => array(
+        'description' => NULL,
+        'upload_validators' => NULL,
+        'cardinality' => NULL,
+      ),
     ),
   );
 }
@@ -652,7 +669,10 @@ function file_file_download($uri, $field_type = 'file') {
         // Default to FALSE and let entities overrule this ruling.
         $grants = array('system' => FALSE);
         foreach (\Drupal::moduleHandler()->getImplementations('file_download_access') as $module) {
-          $grants = array_merge($grants, array($module => module_invoke($module, 'file_download_access', $field, $entity, $file)));
+          $grants = array_merge($grants, array(
+            $module => module_invoke($module, 'file_download_access', $field, $entity, $file),
+            )
+          );
         }
         // Allow other modules to alter the returned grants/denies.
         $context = array(
@@ -690,7 +710,7 @@ function file_file_download($uri, $field_type = 'file') {
 }
 
 /**
- * Implements file_cron()
+ * Implements file_cron().
  */
 function file_cron() {
   $result = \Drupal::entityManager()->getStorageController('file')->retrieveTemporaryFiles();
@@ -706,7 +726,10 @@ function file_cron() {
         }
       }
       else {
-        watchdog('file system', 'Did not delete temporary file "%path" during garbage collection because it is in use by the following modules: %modules.', array('%path' => $file->getFileUri(), '%modules' => implode(', ', array_keys($references))), WATCHDOG_INFO);
+        watchdog('file system', 'Did not delete temporary file "%path" during garbage collection because it is in use by the following modules: %modules.', array(
+          '%path' => $file->getFileUri(),
+          '%modules' => implode(', ', array_keys($references)),
+          ), WATCHDOG_INFO);
       }
     }
   }
@@ -719,10 +742,10 @@ function file_cron() {
  * Temporary files are periodically cleaned. Use file_usage()->add() to register
  * the usage of the file which will automatically mark it as permanent.
  *
- * @param $form_field_name
+ * @param string $form_field_name
  *   A string that is the associative array key of the upload form element in
  *   the form array.
- * @param $validators
+ * @param array $validators
  *   An optional, associative array of callback functions used to validate the
  *   file. See file_validate() for a full discussion of the array format.
  *   If no extension validator is provided it will default to a limited safe
@@ -731,20 +754,20 @@ function file_cron() {
  *   explicitly set the 'file_validate_extensions' validator to an empty array
  *   (Beware: this is not safe and should only be allowed for trusted users, if
  *   at all).
- * @param $destination
+ * @param string $destination
  *   A string containing the URI that the file should be copied to. This must
  *   be a stream wrapper URI. If this value is omitted, Drupal's temporary
  *   files scheme will be used ("temporary://").
- * @param $delta
+ * @param int $delta
  *   Delta of the file to save or NULL to save all files. Defaults to NULL.
- * @param $replace
+ * @param constant $replace
  *   Replace behavior when the destination file already exists:
  *   - FILE_EXISTS_REPLACE: Replace the existing file.
  *   - FILE_EXISTS_RENAME: Append _{incrementing number} until the filename is
  *     unique.
  *   - FILE_EXISTS_ERROR: Do nothing and return FALSE.
  *
- * @return
+ * @return array
  *   Function returns array of files or a single file object if $delta
  *   != NULL. Each file object contains the file information if the
  *   upload succeeded or FALSE in the event of an error. Function
@@ -779,8 +802,9 @@ function file_save_upload($form_field_name, $validators = array(), $destination
   // for multiple uploads and we fix that here.
   $uploaded_files = $_FILES;
   if (!is_array($uploaded_files['files']['name'][$form_field_name])) {
-    foreach (array('name', 'type', 'tmp_name', 'error', 'size') as $value)
-    $uploaded_files['files'][$value][$form_field_name] = array($uploaded_files['files'][$value][$form_field_name]);
+    foreach (array('name', 'type', 'tmp_name', 'error', 'size') as $value) {
+      $uploaded_files['files'][$value][$form_field_name] = array($uploaded_files['files'][$value][$form_field_name]);
+    }
   }
 
   $files = array();
@@ -808,12 +832,11 @@ function file_save_upload($form_field_name, $validators = array(), $destination
           break;
         }
 
-        // Unknown error
+        // Unknown error.
       default:
         drupal_set_message(t('The file %file could not be saved. An unknown error has occurred.', array('%file' => $name)), 'error');
         $files[$i] = FALSE;
         continue;
-
     }
     // Begin building file entity.
     $values = array(
@@ -834,8 +857,8 @@ function file_save_upload($form_field_name, $validators = array(), $destination
       }
       else {
         // If 'file_validate_extensions' is set and the list is empty then the
-        // caller wants to allow any extension. In this case we have to remove the
-        // validator or else it will reject all extensions.
+        // caller wants to allow any extension. In this case we have to remove
+        // the validator or else it will reject all extensions.
         unset($validators['file_validate_extensions']);
       }
     }
@@ -861,8 +884,8 @@ function file_save_upload($form_field_name, $validators = array(), $destination
       $file->setMimeType('text/plain');
       $file->setFileUri($file->getFileUri() . '.txt');
       $file->setFilename($file->getFilename() . '.txt');
-      // The .txt extension may not be in the allowed list of extensions. We have
-      // to add it here or else the file upload will fail.
+      // The .txt extension may not be in the allowed list of extensions. We
+      // have to add it here or else the file upload will fail.
       if (!empty($extensions)) {
         $validators['file_validate_extensions'][0] .= ' txt';
         drupal_set_message(t('For security reasons, your upload has been renamed to %filename.', array('%filename' => $file->getFilename())));
@@ -888,8 +911,8 @@ function file_save_upload($form_field_name, $validators = array(), $destination
       $destination .= '/';
     }
     $file->destination = file_destination($destination . $file->getFilename(), $replace);
-    // If file_destination() returns FALSE then $replace === FILE_EXISTS_ERROR and
-    // there's an existing file so we need to bail.
+    // If file_destination() returns FALSE then $replace === FILE_EXISTS_ERROR
+    // and there's an existing file so we need to bail.
     if ($file->destination === FALSE) {
       drupal_set_message(t('The file %source could not be uploaded because a file by that name already exists in the destination %directory.', array('%source' => $form_field_name, '%directory' => $destination)), 'error');
       $files[$i] = FALSE;
@@ -957,7 +980,7 @@ function file_save_upload($form_field_name, $validators = array(), $destination
 /**
  * Determines the preferred upload progress implementation.
  *
- * @return
+ * @return string
  *   A string indicating which upload progress system is available. Either "apc"
  *   or "uploadprogress". If neither are available, returns FALSE.
  */
@@ -1013,7 +1036,7 @@ function file_tokens($type, $tokens, array $data = array(), array $options = arr
           $replacements[$original] = $file->id();
           break;
 
-        // Essential file data
+        // Essential file data.
         case 'name':
           $replacements[$original] = $sanitize ? check_plain($file->getFilename()) : $file->getFilename();
           break;
@@ -1034,7 +1057,8 @@ function file_tokens($type, $tokens, array $data = array(), array $options = arr
           $replacements[$original] = $sanitize ? check_plain(file_create_url($file->getFileUri())) : file_create_url($file->getFileUri());
           break;
 
-        // These tokens are default variations on the chained tokens handled below.
+        // These tokens are default variations on the chained tokens handled
+        // below.
         case 'timestamp':
           $replacements[$original] = format_date($file->getChangedTime(), 'medium', '', NULL, $langcode);
           break;
@@ -1250,8 +1274,12 @@ function file_managed_file_process($element, &$form_state, $form) {
     $element['upload']['#attached']['js'] = array(
       array(
         'type' => 'setting',
-        'data' => array('file' => array('elements' => array('#' . $element['#id'] . '-upload' => $extension_list)))
-      )
+        'data' => array(
+          'file' => array(
+            'elements' => array('#' . $element['#id'] . '-upload' => $extension_list),
+          ),
+        ),
+      ),
     );
   }
 
@@ -1414,8 +1442,8 @@ function file_managed_file_submit($form, &$form_state) {
 
     foreach ($remove_fids as $fid) {
       // If it's a temporary file we can safely remove it immediately, otherwise
-      // it's up to the implementing module to remove usages of files to have them
-      // removed.
+      // it's up to the implementing module to remove usages of files to have
+      // them removed.
       if ($element['#files'][$fid] && $element['#files'][$fid]->isTemporary()) {
         $element['#files'][$fid]->delete();
       }
@@ -1443,10 +1471,10 @@ function file_managed_file_submit($form, &$form_state) {
 /**
  * Saves any files that have been uploaded into a managed_file element.
  *
- * @param $element
+ * @param managed_file $element
  *   The FAPI element whose values are being saved.
  *
- * @return
+ * @return array
  *   An array of file entities for each file that was saved, keyed by its file
  *   ID, or FALSE if no files were saved.
  */
@@ -1465,7 +1493,7 @@ function file_managed_file_save_upload($element) {
 
   // Save attached files to the database.
   $files_uploaded = $element['#multiple'] && count(array_filter($_FILES['files']['name'][$upload_name])) > 0;
-  $files_uploaded |= !$element['#multiple'] && !empty($_FILES['files']['name'][$upload_name]);
+  $files_uploaded |=!$element['#multiple'] && !empty($_FILES['files']['name'][$upload_name]);
   if ($files_uploaded) {
     if (!$files = file_save_upload($upload_name, $element['#upload_validators'], $destination)) {
       watchdog('file', 'The file upload failed. %upload', array('%upload' => $upload_name));
@@ -1475,7 +1503,9 @@ function file_managed_file_save_upload($element) {
 
     // Value callback expects FIDs to be keys.
     $files = array_filter($files);
-    $fids = array_map(function($file) { return $file->id(); }, $files);
+    $fids = array_map(function($file) {
+      return $file->id();
+    }, $files);
 
     return empty($files) ? array() : array_combine($fids, $files);
   }
@@ -1486,7 +1516,7 @@ function file_managed_file_save_upload($element) {
 /**
  * Returns HTML for a managed file element.
  *
- * @param $variables
+ * @param array $variables
  *   An associative array containing:
  *   - element: A render element representing the file.
  *
@@ -1551,7 +1581,7 @@ function file_managed_file_pre_render($element) {
 /**
  * Returns HTML for a link to a file.
  *
- * @param $variables
+ * @param array $variables
  *   An associative array containing:
  *   - file: A file object to which the link will be created.
  *   - icon_directory: (optional) A path to a directory of icons to be used for
@@ -1593,7 +1623,7 @@ function theme_file_link($variables) {
 /**
  * Returns HTML for an image with an appropriate icon for the given file.
  *
- * @param $variables
+ * @param array $variables
  *   An associative array containing:
  *   - file: A file entity for which to make an icon.
  *   - icon_directory: (optional) A path to a directory of icons to be used for
@@ -1616,11 +1646,11 @@ function theme_file_icon($variables) {
  *
  * @param Drupal\file\File $file
  *   A file entity.
- * @param $icon_directory
+ * @param string $icon_directory
  *   (optional) A path to a directory of icons to be used for files. Defaults to
  *   the value of the "icon.directory" variable.
  *
- * @return
+ * @return string
  *   A URL string to the icon, or FALSE if an appropriate icon cannot be found.
  */
 function file_icon_url(File $file, $icon_directory = NULL) {
@@ -1635,11 +1665,11 @@ function file_icon_url(File $file, $icon_directory = NULL) {
  *
  * @param Drupal\file\File $file
  *   A file entity.
- * @param $icon_directory
+ * @param string $icon_directory
  *   (optional) A path to a directory of icons to be used for files. Defaults to
  *   the value of the "icon.directory" variable.
  *
- * @return
+ * @return string
  *   A string to the icon as a local path, or FALSE if an appropriate icon could
  *   not be found.
  */
@@ -1689,7 +1719,7 @@ function file_icon_path(File $file, $icon_directory = NULL) {
  * @param Drupal\file\File $file
  *   A file entity.
  *
- * @return
+ * @return string
  *   The generic icon MIME package expected for this file.
  */
 function file_icon_map(File $file) {
@@ -1820,22 +1850,22 @@ function file_icon_map(File $file) {
  *
  * @param Drupal\file\File $file
  *   A file entity.
- * @param $field
+ * @param array $field
  *   (optional) A field array to be used for this check. If given, limits the
  *   reference check to the given field.
- * @param $age
+ * @param constant $age
  *   (optional) A constant that specifies which references to count. Use
  *   EntityStorageControllerInterface::FIELD_LOAD_REVISION to retrieve all
  *   references within all revisions or
  *   EntityStorageControllerInterface::FIELD_LOAD_CURRENT to retrieve references
  *   only in the current revisions.
- * @param $field_type
+ * @param string $field_type
  *   (optional) The name of a field type. If given, limits the reference check
  *   to fields of the given type. If both $field and $field_type is given but
  *   $field is not the same type as $field_type, an empty array will be
  *   returned.
  *
- * @return
+ * @return array
  *   A multidimensional array. The keys are field_name, entity_type,
  *   entity_id and the value is an entity referencing this file.
  */
@@ -1927,7 +1957,7 @@ function file_library_info() {
       drupal_get_path('module', 'file') . '/file.js' => array(),
     ),
     'css' => array(
-      drupal_get_path('module', 'file') . '/css/file.admin.css'
+      drupal_get_path('module', 'file') . '/css/file.admin.css',
     ),
     'dependencies' => array(
       array('system', 'jquery'),
@@ -1946,9 +1976,7 @@ function file_permission() {
   $perms = array(
     'access files overview' => array(
       'title' => t('Access the Files overview page'),
-      'description' => user_access('access files overview')
-        ? t('Get an overview of <a href="@url">all files</a>.', array('@url' => url('admin/content/files')))
-        : t('Get an overview of all files.'),
+      'description' => user_access('access files overview') ? t('Get an overview of <a href="@url">all files</a>.', array('@url' => url('admin/content/files'))) : t('Get an overview of all files.'),
     ),
   );
 
@@ -1960,6 +1988,7 @@ function file_permission() {
  *
  * @param int $choice
  *   integer Status code.
+ *
  * @return string
  *   string Text-represented file status.
  */
