CS code fixes by pint

This commit is contained in:
DariusIII
2023-03-02 16:47:20 +01:00
parent a5d5901698
commit 49872346f2
274 changed files with 2117 additions and 4946 deletions
@@ -39,14 +39,9 @@ class RegisterController extends Controller
/**
* Where to redirect users after registration.
*
* @var string
*/
protected string $redirectTo = '/';
/**
* @var string
*/
private string $inviteCodeQuery = '';
/**
@@ -59,10 +54,6 @@ class RegisterController extends Controller
$this->middleware('guest', ['except' => ['getVerification', 'getVerificationError']]);
}
/**
* @param array $data
* @return \App\Models\User
*/
protected function create(array $data): User
{
$user = User::create([
@@ -118,7 +109,6 @@ class RegisterController extends Controller
}
/**
* @param Request $request
* @return RedirectResponse|Redirector|void
*
* @throws ValidationException
@@ -193,28 +183,22 @@ class RegisterController extends Controller
$showRegister = 1;
}
break;
}
app('smarty.view')->assign(
[
'username' => Utility::htmlfmt($userName),
'password' => Utility::htmlfmt($password),
'password_confirmation' => Utility::htmlfmt($confirmPassword),
'email' => Utility::htmlfmt($email),
'invitecode' => Utility::htmlfmt($inviteCode),
'username' => Utility::htmlfmt($userName),
'password' => Utility::htmlfmt($password),
'password_confirmation' => Utility::htmlfmt($confirmPassword),
'email' => Utility::htmlfmt($email),
'invitecode' => Utility::htmlfmt($inviteCode),
'invite_code_query' => Utility::htmlfmt($this->inviteCodeQuery),
'showregister' => $showRegister,
'showregister' => $showRegister,
]
);
return $this->showRegistrationForm($request, $error, $showRegister);
}
/**
* @param Request $request
* @param string $error
* @param int $showRegister
*/
public function showRegistrationForm(Request $request, string $error = '', int $showRegister = 0): void
{
$inviteCode = '';