Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / file / file.module
index 6902db6812bb50940a1d445bf45eb8b2eab709a4..b08fad53e0da42b7c7721df47163f7c62b71b0a6 100644 (file)
@@ -1208,7 +1208,9 @@ function file_managed_file_save_upload($element, FormStateInterface $form_state)
 
     // 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_combine($fids, $files);
   }