Skip to content

Commit 6bd2ea0

Browse files
authored
Fix styling (#121)
Co-authored-by: edalzell <6069653+edalzell@users.noreply.github.com>
1 parent bdc45c4 commit 6bd2ea0

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/LaravelPasswordlessLoginController.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44

55
use Grosv\LaravelPasswordlessLogin\Exceptions\ExpiredSignatureException;
66
use Grosv\LaravelPasswordlessLogin\Exceptions\InvalidSignatureException;
7+
use Illuminate\Http\RedirectResponse;
78
use Illuminate\Http\Request;
9+
use Illuminate\Http\Response;
810
use Illuminate\Routing\Controller;
11+
use Illuminate\Routing\Redirector;
912
use Illuminate\Routing\UrlGenerator;
1013
use Illuminate\Support\Facades\Auth;
14+
use Psr\SimpleCache\InvalidArgumentException;
1115

1216
class LaravelPasswordlessLoginController extends Controller
1317
{
@@ -34,9 +38,9 @@ public function __construct(PasswordlessLoginService $passwordlessLoginService,
3438
* Handles login from the signed route.
3539
*
3640
*
37-
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
41+
* @return RedirectResponse|Redirector
3842
*
39-
* @throws \Psr\SimpleCache\InvalidArgumentException|InvalidSignatureException|ExpiredSignatureException
43+
* @throws InvalidArgumentException|InvalidSignatureException|ExpiredSignatureException
4044
*/
4145
public function login(Request $request)
4246
{
@@ -69,7 +73,7 @@ public function login(Request $request)
6973
/**
7074
* Redirect testing.
7175
*
72-
* @return \Illuminate\Http\Response
76+
* @return Response
7377
*/
7478
public function redirectTestRoute()
7579
{
@@ -79,7 +83,7 @@ public function redirectTestRoute()
7983
/**
8084
* Redirect override testing.
8185
*
82-
* @return \Illuminate\Http\Response
86+
* @return Response
8387
*/
8488
public function overrideTestRoute()
8589
{

src/LoginUrl.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Grosv\LaravelPasswordlessLogin;
44

5+
use Carbon\Carbon;
6+
use Illuminate\Config\Repository;
57
use Illuminate\Contracts\Auth\Authenticatable as User;
68
use Illuminate\Support\Facades\URL;
79

@@ -13,12 +15,12 @@ class LoginUrl
1315
private $user;
1416

1517
/**
16-
* @var \Illuminate\Config\Repository
18+
* @var Repository
1719
*/
1820
private $route_name;
1921

2022
/**
21-
* @var \Carbon\Carbon
23+
* @var Carbon
2224
*/
2325
private $route_expires;
2426

src/PasswordlessLoginManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class PasswordlessLoginManager
1313
{
1414
/**
15-
* @var \Grosv\LaravelPasswordlessLogin\LoginUrl
15+
* @var LoginUrl
1616
*/
1717
private $loginUrl;
1818

0 commit comments

Comments
 (0)