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 (#5715)
by Pedro
15:17
created
src/BackpackServiceProvider.php 1 patch
Spacing   +14 added lines, -16 removed lines patch added patch discarded remove patch
@@ -83,28 +83,28 @@  discard block
 block discarded – undo
83 83
         $this->registerBackpackErrorViews();
84 84
 
85 85
         // Bind the CrudPanel object to Laravel's service container
86
-        $this->app->scoped('crud', function ($app) {
86
+        $this->app->scoped('crud', function($app) {
87 87
             return new CrudPanel();
88 88
         });
89 89
 
90
-        $this->app->scoped('DatabaseSchema', function ($app) {
90
+        $this->app->scoped('DatabaseSchema', function($app) {
91 91
             return new DatabaseSchema();
92 92
         });
93 93
 
94
-        $this->app->scoped('BackpackLifecycleHooks', function ($app) {
94
+        $this->app->scoped('BackpackLifecycleHooks', function($app) {
95 95
             return new app\Library\CrudPanel\Hooks\LifecycleHooks();
96 96
         });
97 97
 
98
-        $this->app->singleton('BackpackViewNamespaces', function ($app) {
98
+        $this->app->singleton('BackpackViewNamespaces', function($app) {
99 99
             return new ViewNamespaces();
100 100
         });
101 101
 
102 102
         // Bind the widgets collection object to Laravel's service container
103
-        $this->app->singleton('widgets', function ($app) {
103
+        $this->app->singleton('widgets', function($app) {
104 104
             return new Collection();
105 105
         });
106 106
 
107
-        $this->app->scoped('UploadersRepository', function ($app) {
107
+        $this->app->scoped('UploadersRepository', function($app) {
108 108
             return new UploadersRepository();
109 109
         });
110 110
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $middleware_key = config('backpack.base.middleware_key');
121 121
         $middleware_class = config('backpack.base.middleware_class');
122 122
 
123
-        if (! is_array($middleware_class)) {
123
+        if (!is_array($middleware_class)) {
124 124
             $router->pushMiddlewareToGroup($middleware_key, $middleware_class);
125 125
 
126 126
             return;
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         $configs = scandir(__DIR__."/config/backpack/$dir/");
236 236
         $configs = array_diff($configs, ['.', '..']);
237 237
 
238
-        if (! count($configs)) {
238
+        if (!count($configs)) {
239 239
             return;
240 240
         }
241 241
 
@@ -284,8 +284,7 @@  discard block
 block discarded – undo
284 284
         // add the backpack_users password broker to the configuration
285 285
         $laravelAuthPasswordBrokers = app()->config['auth.passwords'];
286 286
         $laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ?
287
-                                        current($laravelAuthPasswordBrokers)['table'] :
288
-                                        '';
287
+                                        current($laravelAuthPasswordBrokers)['table'] : '';
289 288
 
290 289
         $backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ??
291 290
                                         config('auth.passwords.users.table') ??
@@ -313,7 +312,7 @@  discard block
 block discarded – undo
313 312
 
314 313
     public function loadViewComponents()
315 314
     {
316
-        $this->app->afterResolving(BladeCompiler::class, function () {
315
+        $this->app->afterResolving(BladeCompiler::class, function() {
317 316
             Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack');
318 317
         });
319 318
     }
@@ -339,13 +338,13 @@  discard block
 block discarded – undo
339 338
     private function registerBackpackErrorViews()
340 339
     {
341 340
         // register the backpack error when the exception handler is resolved from the container
342
-        $this->callAfterResolving(ExceptionHandler::class, function ($handler) {
343
-            if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
341
+        $this->callAfterResolving(ExceptionHandler::class, function($handler) {
342
+            if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
344 343
                 return;
345 344
             }
346 345
 
347 346
             // parse the namespaces set in config
348
-            [$themeNamespace, $themeFallbackNamespace] = (function () {
347
+            [$themeNamespace, $themeFallbackNamespace] = (function() {
349 348
                 $themeNamespace = config('backpack.ui.view_namespace');
350 349
                 $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback');
351 350
 
@@ -362,8 +361,7 @@  discard block
 block discarded – undo
362 361
             // - fallback theme paths
363 362
             // - ui path
364 363
             $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? [];
365
-            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths :
366
-                array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
364
+            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
367 365
             $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')];
368 366
             $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths);
369 367
 
Please login to merge, or discard this patch.
config/database/migrations/2024_07_30_000001_create_translatable_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('translatable', function (Blueprint $table) {
16
+        Schema::create('translatable', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->json('title');
19 19
             $table->json('description')->nullable();
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Input.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         }
99 99
 
100 100
         //remove fields that are not in the submitted form input
101
-        $relationFields = array_filter($relationFields, function ($field) use ($input) {
101
+        $relationFields = array_filter($relationFields, function($field) use ($input) {
102 102
             return Arr::has($input, $field['name']) || isset($input[$field['name']]) || Arr::has($input, Str::afterLast($field['name'], '.'));
103 103
         });
104 104
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                     // the key used to store the values is the main relation key
128 128
                     $key = Str::beforeLast($this->getOnlyRelationEntity($field), '.');
129 129
 
130
-                    if (! isset($field['parentFieldName']) && isset($field['entity'])) {
130
+                    if (!isset($field['parentFieldName']) && isset($field['entity'])) {
131 131
                         $mainField = $field;
132 132
                         $mainField['entity'] = Str::beforeLast($field['entity'], '.');
133 133
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
             // when using dot notation if relationMethod is not set we are sure we want to exclude those relations.
187 187
             if ($this->getOnlyRelationEntity($field) !== $field['entity']) {
188
-                if (! $relationMethod) {
188
+                if (!$relationMethod) {
189 189
                     $excludedFields[] = $nameToExclude;
190 190
                 }
191 191
 
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
             }
200 200
         }
201 201
 
202
-        return Arr::where($input, function ($item, $key) use ($excludedFields) {
203
-            return ! in_array($key, $excludedFields);
202
+        return Arr::where($input, function($item, $key) use ($excludedFields) {
203
+            return !in_array($key, $excludedFields);
204 204
         });
205 205
     }
206 206
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                 $jsonCastables = ['array', 'object', 'json'];
228 228
                 $fieldCasting = $casted_attributes[$field['name']];
229 229
 
230
-                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && ! empty($input[$field['name']]) && ! is_array($input[$field['name']]) && ! in_array($field['name'], $translatableAttributes)) {
230
+                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && !empty($input[$field['name']]) && !is_array($input[$field['name']]) && !in_array($field['name'], $translatableAttributes)) {
231 231
                     try {
232 232
                         $input[$field['name']] = json_decode($input[$field['name']]);
233 233
                     } catch (\Exception $e) {
Please login to merge, or discard this patch.