Fix backend code styling

This commit is contained in:
MakingCG
2021-05-24 14:48:13 +00:00
committed by GitHub Actions
parent 99b4b030d2
commit 350f130d98
98 changed files with 1845 additions and 1845 deletions
+3 -3
View File
@@ -29,7 +29,7 @@ class CreateNewUser implements CreatesNewUsers
}
Validator::make($input, [
'name' => ['required', 'string', 'max:255'],
'name' => ['required', 'string', 'max:255'],
'email' => [
'required',
'string',
@@ -41,7 +41,7 @@ class CreateNewUser implements CreatesNewUsers
])->validate();
$user = User::create([
'email' => $input['email'],
'email' => $input['email'],
'password' => bcrypt($input['password']),
]);
@@ -50,7 +50,7 @@ class CreateNewUser implements CreatesNewUsers
$user
->settings()
->create([
'name' => $input['name'],
'name' => $input['name'],
'storage_capacity' => $settings['storage_default'],
]);
+1 -1
View File
@@ -21,7 +21,7 @@ class UpdateUserPassword implements UpdatesUserPasswords
{
Validator::make($input, [
'current_password' => ['required', 'string'],
'password' => $this->passwordRules(),
'password' => $this->passwordRules(),
])->after(function ($validator) use ($user, $input) {
if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) {
$validator->errors()->add('current_password', __('The provided password does not match your current password.'));
@@ -34,7 +34,7 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
$this->updateVerifiedUser($user, $input);
} else {
$user->forceFill([
'name' => $input['name'],
'name' => $input['name'],
'email' => $input['email'],
])->save();
}
@@ -50,8 +50,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
protected function updateVerifiedUser($user, array $input)
{
$user->forceFill([
'name' => $input['name'],
'email' => $input['email'],
'name' => $input['name'],
'email' => $input['email'],
'email_verified_at' => null,
])->save();