mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Some generic code refactoring.
This commit is contained in:
@@ -43,7 +43,7 @@ class ConfigurationName implements BinderInterface
|
||||
public static function routeBinder(string $value, Route $route): string
|
||||
{
|
||||
$accepted = ['is_demo_site', 'permission_update_check', 'single_user_mode'];
|
||||
if (\in_array($value, $accepted, true)) {
|
||||
if (in_array($value, $accepted, true)) {
|
||||
return $value;
|
||||
}
|
||||
throw new NotFoundHttpException;
|
||||
|
||||
Reference in New Issue
Block a user