mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Changes:
- added some type-hints - added documentation
This commit is contained in:
parent
84d3eecc33
commit
a49fb9cbf9
8 changed files with 64 additions and 19 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue