Fixed wonky switch statement indenting

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-02-06 12:44:17 -08:00
parent d52d32fed9
commit cd5546e4a1

View file

@ -39,14 +39,12 @@ class SaveUserRequest extends FormRequest
// Brand new user // Brand new user
case 'POST': case 'POST':
{
$rules['first_name'] = 'required|string|min:1'; $rules['first_name'] = 'required|string|min:1';
$rules['username'] = 'required_unless:ldap_import,1|string|min:1'; $rules['username'] = 'required_unless:ldap_import,1|string|min:1';
if ($this->request->get('ldap_import') == false) { if ($this->request->get('ldap_import') == false) {
$rules['password'] = Setting::passwordComplexityRulesSaving('store').'|confirmed'; $rules['password'] = Setting::passwordComplexityRulesSaving('store').'|confirmed';
} }
break; break;
}
// Save all fields // Save all fields
case 'PUT': case 'PUT':
@ -57,12 +55,11 @@ class SaveUserRequest extends FormRequest
// Save only what's passed // Save only what's passed
case 'PATCH': case 'PATCH':
{
$rules['password'] = Setting::passwordComplexityRulesSaving('update'); $rules['password'] = Setting::passwordComplexityRulesSaving('update');
break; break;
}
default:break; default:
break;
} }
return $rules; return $rules;