Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 7883817

Browse files
authored
Apply fixes from StyleCI (#6)
[ci skip] [skip ci]
1 parent 3fee177 commit 7883817

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/Http/Controllers/Cp/Auth/MagicLinkLoginController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public function login(Request $request)
2828
* the protected content feature.
2929
*/
3030
$user = User::findByEmail($request->get('user_email'));
31-
if($user !== null) {
31+
if ($user !== null) {
3232
Auth::guard('web')->login($user);
3333
}
3434

35-
$redirect = !empty($this->magicLinkManager->get()->get($user->email())['redirect_to'])
35+
$redirect = ! empty($this->magicLinkManager->get()->get($user->email())['redirect_to'])
3636
? route($this->magicLinkManager->get()->get($user->email())['redirect_to'])
3737
: cp_route(config('statamic-magiclink.url.redirect_on_success'));
3838

src/Http/Controllers/Cp/LinksController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Carbon\Carbon;
88
use Codedge\MagicLink\MagicLinkManager;
9-
use Illuminate\Http\Request;
109
use Statamic\CP\Column;
1110

1211
final class LinksController extends BaseCpController

src/Http/Middleware/MagicLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function handle(Request $request, Closure $next)
2424
{
2525
$previousRoute = $request->create(url()->previous());
2626

27-
if($request->has('referer')) {
27+
if ($request->has('referer')) {
2828
$previousRoute = $request->create($request->get('referer'));
2929
}
3030

src/MagicLink.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Codedge\MagicLink;
66

77
use Carbon\Carbon;
8-
use Illuminate\Support\Facades\Session;
98
use Illuminate\Support\Facades\URL;
109
use Statamic\Contracts\Auth\User;
1110

@@ -19,7 +18,6 @@ final class MagicLink
1918
/**
2019
* Redirect to the page after a successful login. This is either the CP dashboard or a page with protected
2120
* content.
22-
*
2321
*/
2422
protected string $redirectTo;
2523
protected string $link;

0 commit comments

Comments
 (0)