mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
StyleCI cleanup
This commit is contained in:
@@ -19,7 +19,7 @@ class ChangeServiceVariablesValidationRules extends Migration
|
||||
});
|
||||
|
||||
DB::transaction(function () {
|
||||
foreach(ServiceVariable::all() as $variable) {
|
||||
foreach (ServiceVariable::all() as $variable) {
|
||||
$variable->rules = ($variable->required) ? 'required|regex:' . $variable->rules : 'regex:' . $variable->regex;
|
||||
$variable->save();
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class ChangeServiceVariablesValidationRules extends Migration
|
||||
});
|
||||
|
||||
DB::transaction(function () {
|
||||
foreach(ServiceVariable::all() as $variable) {
|
||||
foreach (ServiceVariable::all() as $variable) {
|
||||
$variable->regex = str_replace(['required|regex:', 'regex:'], '', $variable->regex);
|
||||
$variable->save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user