Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — main (#5301)
by Cristian
12:10
created
src/app/Http/Middleware/EnsureEmailVerification.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@
 block discarded – undo
18 18
     public function handle($request, Closure $next)
19 19
     {
20 20
         // if the route name is not one of the verification process, run the verification middleware
21
-        if (! in_array($request->route()->getName(), ['verification.notice', 'verification.verify', 'verification.send'])) {
21
+        if (!in_array($request->route()->getName(), ['verification.notice', 'verification.verify', 'verification.send'])) {
22 22
             // the Laravel middleware needs the user resolver to be set with the backpack guard
23 23
             $userResolver = $request->getUserResolver();
24
-            $request->setUserResolver(function () use ($userResolver) {
24
+            $request->setUserResolver(function() use ($userResolver) {
25 25
                 return $userResolver(backpack_guard_name());
26 26
             });
27 27
             try {
28 28
                 $verifiedMiddleware = new (app('router')->getMiddleware()['verified'])();
29
-            } catch(Throwable) {
29
+            } catch (Throwable) {
30 30
                 throw new Exception('Missing "verified" alias middleware in App/Http/Kernel.php. More info: https://backpackforlaravel.com/docs/6.x/base-how-to#enable-email-verification-in-backpack-routes');
31 31
             }
32 32
 
Please login to merge, or discard this patch.
src/app/Http/Controllers/Auth/VerifyEmailController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 class VerifyEmailController extends Controller
14 14
 {
15
-    public null|string $redirectTo = null;
15
+    public null | string $redirectTo = null;
16 16
 
17 17
     /**
18 18
      * Create a new controller instance.
@@ -21,25 +21,25 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function __construct()
23 23
     {
24
-        if (! app('router')->getMiddleware()['signed'] ?? null) {
24
+        if (!app('router')->getMiddleware()['signed'] ?? null) {
25 25
             throw new Exception('Missing "signed" alias middleware in App/Http/Kernel.php. More info: https://backpackforlaravel.com/docs/6.x/base-how-to#enable-email-verification-in-backpack-routes');
26 26
         }
27 27
 
28 28
         $this->middleware('signed')->only('verifyEmail');
29 29
         $this->middleware('throttle:'.config('backpack.base.email_verification_throttle_access'))->only('resendVerificationEmail');
30 30
 
31
-        if (! backpack_users_have_email()) {
31
+        if (!backpack_users_have_email()) {
32 32
             abort(500, trans('backpack::base.no_email_column'));
33 33
         }
34 34
         // where to redirect after the email is verified
35 35
         $this->redirectTo = $this->redirectTo !== null ? $this->redirectTo : backpack_url('dashboard');
36 36
     }
37 37
 
38
-    public function emailVerificationRequired(): \Illuminate\Contracts\View\View|\Illuminate\Http\RedirectResponse
38
+    public function emailVerificationRequired(): \Illuminate\Contracts\View\View | \Illuminate\Http\RedirectResponse
39 39
     {
40 40
         $user = $this->getUserFromCookie();
41 41
 
42
-        if (! $user) {
42
+        if (!$user) {
43 43
             return redirect()->route('backpack.auth.login');
44 44
         }
45 45
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $user = $this->getUser($request);
57 57
 
58
-        if (! $user) {
58
+        if (!$user) {
59 59
             return redirect()->route('backpack.auth.login');
60 60
         }
61 61
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $user = $this->getUser($request);
73 73
 
74
-        if (! $user) {
74
+        if (!$user) {
75 75
             return redirect()->route('backpack.auth.login');
76 76
         }
77 77
 
Please login to merge, or discard this patch.