MAPG-69 add missing return types in LoginController

This commit is contained in:
Bence Pőcze 2020-06-21 15:19:36 +02:00
parent a8777b897b
commit 1cfbef418e

View File

@ -43,7 +43,7 @@ class LoginController
return new HtmlContent('login/login', $data); return new HtmlContent('login/login', $data);
} }
public function getGoogleLoginRedirect() public function getGoogleLoginRedirect(): IRedirect
{ {
$state = bin2hex(random_bytes(16)); $state = bin2hex(random_bytes(16));
@ -72,7 +72,7 @@ class LoginController
return new HtmlContent('login/signup', $data); return new HtmlContent('login/signup', $data);
} }
public function getSignupSuccess() public function getSignupSuccess(): IContent
{ {
$data = []; $data = [];
return new HtmlContent('login/signup_success', $data); return new HtmlContent('login/signup_success', $data);
@ -261,7 +261,7 @@ class LoginController
return new JsonContent($data); return new JsonContent($data);
} }
public function signupWithGoogle() public function signupWithGoogle(): IContent
{ {
if ($this->request->user() !== null) { if ($this->request->user() !== null) {
$data = ['success' => true]; $data = ['success' => true];