Minor code consistency changes, no functional changes

This commit is contained in:
2025-07-03 09:21:03 +08:00
parent f1316d698d
commit 305ef0f5a3
3 changed files with 8 additions and 13 deletions

View File

@@ -206,7 +206,7 @@ class HomeController extends Controller
}
return Redirect::to('/')
->with('success',[sprintf('%s: %s',__('Deleted'),$dn)]);
->with('success',sprintf('%s: %s',__('Deleted'),$dn));
}
public function entry_export(Request $request,string $id): \Illuminate\View\View
@@ -298,7 +298,7 @@ class HomeController extends Controller
$request->get('_userpassword_hash'));
if (! $o->getDirty())
return back()
return Redirect::back()
->withInput()
->with('note',__('No attributes changed'));
@@ -315,7 +315,7 @@ class HomeController extends Controller
$o = config('server')->fetch($from_dn);
if (! $o)
return back()
return Redirect::back()
->withInput()
->with('note',__('DN doesnt exist'));
@@ -351,7 +351,7 @@ class HomeController extends Controller
$o->{$key} = array_filter($value);
if (! $dirty=$o->getDirty())
return back()
return Redirect::back()
->withInput()
->with('note',__('No attributes changed'));