]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/UserImport.php
Changes:
[friendica.git] / src / Core / UserImport.php
index fbc89ccf580ce0deed66a66dc9421c33bce321aa..339ce0b65b0aaac1a7b33fc45ec43f47523a012d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -86,7 +86,7 @@ class UserImport
         * @return array|bool
         * @throws \Exception
         */
-       private static function dbImportAssoc($table, $arr)
+       private static function dbImportAssoc(string $table, array $arr)
        {
                if (isset($arr['id'])) {
                        unset($arr['id']);
@@ -105,10 +105,11 @@ class UserImport
         * Import account file exported from mod/uexport
         *
         * @param array $file array from $_FILES
+        * @return void
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
-       public static function importAccount($file)
+       public static function importAccount(array $file)
        {
                Logger::notice("Start user import from " . $file['tmp_name']);
                /*