We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | class VerifyEmailController extends Controller |
11 | 11 | { |
12 | - public null|string $redirectTo = null; |
|
12 | + public null | string $redirectTo = null; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * Create a new controller instance. |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $this->middleware('signed')->only('verifyEmail'); |
23 | 23 | $this->middleware('throttle:'.config('backpack.base.email_verification_throttle_access'))->only('resendVerificationEmail'); |
24 | 24 | |
25 | - if (! backpack_users_have_email()) { |
|
25 | + if (!backpack_users_have_email()) { |
|
26 | 26 | abort(500, trans('backpack::base.no_email_column')); |
27 | 27 | } |
28 | 28 | // where to redirect after the email is verified |
@@ -16,10 +16,10 @@ |
||
16 | 16 | public function handle($request, Closure $next) |
17 | 17 | { |
18 | 18 | // if the route name is not one of the verification process, run the verification middleware |
19 | - if (! in_array($request->route()->getName(), ['verification.notice', 'verification.verify', 'verification.send'])) { |
|
19 | + if (!in_array($request->route()->getName(), ['verification.notice', 'verification.verify', 'verification.send'])) { |
|
20 | 20 | // the Laravel middleware needs the user resolver to be set with the backpack guard |
21 | 21 | $userResolver = $request->getUserResolver(); |
22 | - $request->setUserResolver(function () use ($userResolver) { |
|
22 | + $request->setUserResolver(function() use ($userResolver) { |
|
23 | 23 | return $userResolver(backpack_guard_name()); |
24 | 24 | }); |
25 | 25 | $verifiedMiddleware = new (app('router')->getMiddleware()['verified'])(); |