summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-03-28 16:13:19 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-04-04 11:45:22 +0200
commit0b332ceac24ee93e82e25ee95841ae6fae3b889b (patch)
tree5c33219f115c05a17cec25e2122ff1cae352e86f /core/Controller
parent292b903bc283c5a7929e092d8262331606461ef7 (diff)
downloadnextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.tar.gz
nextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.zip
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LoginController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 9644710689d..f22fee4f5e7 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -134,7 +134,7 @@ class LoginController extends Controller {
#[UseSession]
#[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]
#[FrontpageRoute(verb: 'GET', url: '/login')]
- public function showLoginForm(string $user = null, string $redirect_url = null): Http\Response {
+ public function showLoginForm(?string $user = null, ?string $redirect_url = null): Http\Response {
if ($this->userSession->isLoggedIn()) {
return new RedirectResponse($this->urlGenerator->linkToDefaultPageUrl());
}
@@ -307,7 +307,7 @@ class LoginController extends Controller {
public function tryLogin(Chain $loginChain,
string $user = '',
string $password = '',
- string $redirect_url = null,
+ ?string $redirect_url = null,
string $timezone = '',
string $timezone_offset = ''): RedirectResponse {
if (!$this->request->passesCSRFCheck()) {