mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed wonky switch statement indenting
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d52d32fed9
commit
cd5546e4a1
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue