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 — main ( d04677...f3c610 )
by Pedro
29:02 queued 14:03
created
src/BackpackServiceProvider.php 1 patch
Spacing   +12 added lines, -13 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;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         $configs = scandir(__DIR__."/config/backpack/$dir/");
229 229
         $configs = array_diff($configs, ['.', '..']);
230 230
 
231
-        if (! count($configs)) {
231
+        if (!count($configs)) {
232 232
             return;
233 233
         }
234 234
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 
304 304
     public function loadViewComponents()
305 305
     {
306
-        $this->app->afterResolving(BladeCompiler::class, function () {
306
+        $this->app->afterResolving(BladeCompiler::class, function() {
307 307
             Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack');
308 308
         });
309 309
     }
@@ -329,13 +329,13 @@  discard block
 block discarded – undo
329 329
     private function registerBackpackErrorViews()
330 330
     {
331 331
         // register the backpack error when the exception handler is resolved from the container
332
-        $this->callAfterResolving(ExceptionHandler::class, function ($handler) {
333
-            if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
332
+        $this->callAfterResolving(ExceptionHandler::class, function($handler) {
333
+            if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
334 334
                 return;
335 335
             }
336 336
 
337 337
             // parse the namespaces set in config
338
-            [$themeNamespace, $themeFallbackNamespace] = (function () {
338
+            [$themeNamespace, $themeFallbackNamespace] = (function() {
339 339
                 $themeNamespace = config('backpack.ui.view_namespace');
340 340
                 $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback');
341 341
 
@@ -352,8 +352,7 @@  discard block
 block discarded – undo
352 352
             // - fallback theme paths
353 353
             // - ui path
354 354
             $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? [];
355
-            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths :
356
-                array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
355
+            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
357 356
             $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')];
358 357
             $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths);
359 358
 
Please login to merge, or discard this patch.