]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveUser.php
Merge remote-tracking branch 'upstream/2022.09-rc' into cooldown
[friendica.git] / src / Worker / RemoveUser.php
index 997329e014b9329cb2645e655cb9a244ba6bad0a..6a2d54422eb7fd99bbdfe1ff174522e0a56159c4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -29,7 +29,13 @@ use Friendica\Model\Post;
  * Removes orphaned data from deleted users
  */
 class RemoveUser {
-       public static function execute($uid)
+       /**
+        * Removes user by id
+        *
+        * @param int $uid User id
+        * @return void
+        */
+       public static function execute(int $uid)
        {
                // Only delete if the user is archived
                $condition = ['account_removed' => true, 'uid' => $uid];