diff --git a/app/Services/AccountSuspensionService.php b/app/Services/AccountSuspensionService.php index d737043..0624929 100755 --- a/app/Services/AccountSuspensionService.php +++ b/app/Services/AccountSuspensionService.php @@ -22,12 +22,12 @@ class AccountSuspensionService * Suspensions also block registration attempts. * * @param string $reason Suspension reason. - * @param string $duration Duration. This is a timestamp. + * @param int $duration Duration. This is a timestamp. * @param User $target Who to suspend. * @param string $type Permanent or temporary? * @return Ban The ban itself */ - public function suspend($reason, $duration, User $target, $type = "on"): Ban { + public function suspend(User $target, string $reason, int $duration = 0, string $type = "on"): Ban { Log::alert("An user account has just been suspended.", [ 'taget_email' => $target->email,