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
Push — add-email-confirmation ( 977276...0c6516 )
by Pedro
13:40
created
src/BackpackServiceProvider.php 1 patch
Spacing   +15 added lines, -17 removed lines patch added patch discarded remove patch
@@ -82,24 +82,24 @@  discard block
 block discarded – undo
82 82
         $this->registerBackpackErrorViews();
83 83
 
84 84
         // Bind the CrudPanel object to Laravel's service container
85
-        $this->app->scoped('crud', function ($app) {
85
+        $this->app->scoped('crud', function($app) {
86 86
             return new CrudPanel();
87 87
         });
88 88
 
89
-        $this->app->scoped('DatabaseSchema', function ($app) {
89
+        $this->app->scoped('DatabaseSchema', function($app) {
90 90
             return new DatabaseSchema();
91 91
         });
92 92
 
93
-        $this->app->singleton('BackpackViewNamespaces', function ($app) {
93
+        $this->app->singleton('BackpackViewNamespaces', function($app) {
94 94
             return new ViewNamespaces();
95 95
         });
96 96
 
97 97
         // Bind the widgets collection object to Laravel's service container
98
-        $this->app->singleton('widgets', function ($app) {
98
+        $this->app->singleton('widgets', function($app) {
99 99
             return new Collection();
100 100
         });
101 101
 
102
-        $this->app->scoped('UploadersRepository', function ($app) {
102
+        $this->app->scoped('UploadersRepository', function($app) {
103 103
             return new UploadersRepository();
104 104
         });
105 105
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $middleware_key = config('backpack.base.middleware_key');
116 116
         $middleware_class = config('backpack.base.middleware_class');
117 117
 
118
-        if (! is_array($middleware_class)) {
118
+        if (!is_array($middleware_class)) {
119 119
             $router->pushMiddlewareToGroup($middleware_key, $middleware_class);
120 120
 
121 121
             return;
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
             // we ensure they'r properly aliased if not previously set by developer
140 140
             $routeMiddlewares = $router->getMiddleware();
141 141
 
142
-            if(! in_array('verified', array_keys($routeMiddlewares))) {
142
+            if (!in_array('verified', array_keys($routeMiddlewares))) {
143 143
                 $router->aliasMiddleware('verified', \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class);
144 144
             }
145 145
             
146
-            if(! in_array('signed', array_keys($routeMiddlewares))) {
146
+            if (!in_array('signed', array_keys($routeMiddlewares))) {
147 147
                 $router->aliasMiddleware('signed', \Illuminate\Routing\Middleware\ValidateSignature::class);
148 148
             }
149 149
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $configs = scandir(__DIR__."/config/backpack/$dir/");
248 248
         $configs = array_diff($configs, ['.', '..']);
249 249
 
250
-        if (! count($configs)) {
250
+        if (!count($configs)) {
251 251
             return;
252 252
         }
253 253
 
@@ -296,8 +296,7 @@  discard block
 block discarded – undo
296 296
         // add the backpack_users password broker to the configuration
297 297
         $laravelAuthPasswordBrokers = app()->config['auth.passwords'];
298 298
         $laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ?
299
-                                        current($laravelAuthPasswordBrokers)['table'] :
300
-                                        '';
299
+                                        current($laravelAuthPasswordBrokers)['table'] : '';
301 300
 
302 301
         $backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ??
303 302
                                         config('auth.passwords.users.table') ??
@@ -325,7 +324,7 @@  discard block
 block discarded – undo
325 324
 
326 325
     public function loadViewComponents()
327 326
     {
328
-        $this->app->afterResolving(BladeCompiler::class, function () {
327
+        $this->app->afterResolving(BladeCompiler::class, function() {
329 328
             Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack');
330 329
         });
331 330
     }
@@ -351,13 +350,13 @@  discard block
 block discarded – undo
351 350
     private function registerBackpackErrorViews()
352 351
     {
353 352
         // register the backpack error when the exception handler is resolved from the container
354
-        $this->callAfterResolving(ExceptionHandler::class, function ($handler) {
355
-            if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
353
+        $this->callAfterResolving(ExceptionHandler::class, function($handler) {
354
+            if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
356 355
                 return;
357 356
             }
358 357
 
359 358
             // parse the namespaces set in config
360
-            [$themeNamespace, $themeFallbackNamespace] = (function () {
359
+            [$themeNamespace, $themeFallbackNamespace] = (function() {
361 360
                 $themeNamespace = config('backpack.ui.view_namespace');
362 361
                 $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback');
363 362
 
@@ -374,8 +373,7 @@  discard block
 block discarded – undo
374 373
             // - fallback theme paths
375 374
             // - ui path
376 375
             $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? [];
377
-            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths :
378
-                array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
376
+            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
379 377
             $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')];
380 378
             $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths);
381 379
 
Please login to merge, or discard this patch.
src/app/Http/Controllers/Auth/VerifyEmailController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
      * Create a new controller instance.
15 15
      *
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $this->middleware('signed')->only('verifyEmail');
22 22
         $this->middleware('throttle:'.config('backpack.base.email_verification_throttle_access'))->only('resendVerificationEmail');
23 23
 
24
-        if (! backpack_users_have_email()) {
24
+        if (!backpack_users_have_email()) {
25 25
             abort(500, trans('backpack::base.no_email_column'));
26 26
         }
27 27
         // where to redirect after the email is verified
Please login to merge, or discard this patch.
src/app/Http/Middleware/EnsureEmailVerification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 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'])();
Please login to merge, or discard this patch.