mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 09:00:07 +00:00
Fix code quality with rector [skip ci]
This commit is contained in:
@@ -73,7 +73,7 @@ class ForgotPasswordController extends Controller
|
||||
$message = sprintf('Cannot reset password when authenticating over "%s".', config('firefly.authentication_guard'));
|
||||
Log::error($message);
|
||||
|
||||
return view('errors.error', compact('message'));
|
||||
return view('errors.error', ['message' => $message]);
|
||||
}
|
||||
|
||||
// validate host header.
|
||||
@@ -138,7 +138,7 @@ class ForgotPasswordController extends Controller
|
||||
if ('web' !== config('firefly.authentication_guard')) {
|
||||
$message = sprintf('Cannot reset password when authenticating over "%s".', config('firefly.authentication_guard'));
|
||||
|
||||
return view('errors.error', compact('message'));
|
||||
return view('errors.error', ['message' => $message]);
|
||||
}
|
||||
|
||||
// is allowed to?
|
||||
@@ -150,6 +150,6 @@ class ForgotPasswordController extends Controller
|
||||
$allowRegistration = false;
|
||||
}
|
||||
|
||||
return view('auth.passwords.email')->with(compact('allowRegistration', 'pageTitle'));
|
||||
return view('auth.passwords.email')->with(['allowRegistration' => $allowRegistration, 'pageTitle' => $pageTitle]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user