<?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
*
* 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];