mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 15:57:29 +00:00
Set /app PHP code to PSR-2 standard
Also adde draw.io to attribution list. Closes #649
This commit is contained in:
parent
30b4f81fc6
commit
62342433f4
80 changed files with 593 additions and 335 deletions
app/Http/Controllers
|
@ -33,7 +33,9 @@ class SettingController extends Controller
|
|||
|
||||
// Cycles through posted settings and update them
|
||||
foreach ($request->all() as $name => $value) {
|
||||
if (strpos($name, 'setting-') !== 0) continue;
|
||||
if (strpos($name, 'setting-') !== 0) {
|
||||
continue;
|
||||
}
|
||||
$key = str_replace('setting-', '', trim($name));
|
||||
Setting::put($key, $value);
|
||||
}
|
||||
|
@ -41,5 +43,4 @@ class SettingController extends Controller
|
|||
session()->flash('success', trans('settings.settings_save_success'));
|
||||
return redirect('/settings');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue