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 — datatable-single-component ( f9bbe3...898ff0 )
by Pedro
14:27
created
tests/config/CrudPanel/BaseCrudPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $app['config']->set('database.default', 'testing');
49 49
         $app['config']->set('backpack.base.route_prefix', 'admin');
50 50
 
51
-        $app->bind('App\Http\Middleware\CheckIfAdmin', function () {
51
+        $app->bind('App\Http\Middleware\CheckIfAdmin', function() {
52 52
             return new class
53 53
             {
54 54
                 public function handle($request, $next)
Please login to merge, or discard this patch.
src/app/Http/Controllers/CrudController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
         //
39 39
         // It's done inside a middleware closure in order to have
40 40
         // the complete request inside the CrudPanel object.
41
-        $this->middleware(function ($request, $next) {
42
-            if (! Backpack::hasCrudController(get_class($this))) {
41
+        $this->middleware(function($request, $next) {
42
+            if (!Backpack::hasCrudController(get_class($this))) {
43 43
                 $this->initializeCrud($request);
44 44
 
45 45
                 return $next($request);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     protected function setupConfigurationForCurrentOperation(?string $operation = null)
137 137
     {
138 138
         $operationName = $operation ?? $this->crud->getCurrentOperation();
139
-        if (! $operationName) {
139
+        if (!$operationName) {
140 140
             return;
141 141
         }
142 142
         $setupClassName = 'setup'.Str::studly($operationName).'Operation';
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/AutoSet.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $this->getDbColumnTypes();
18 18
 
19
-        array_map(function ($field) use ($setFields, $setColumns) {
20
-            if ($setFields && ! isset($this->getCleanStateFields()[$field])) {
19
+        array_map(function($field) use ($setFields, $setColumns) {
20
+            if ($setFields && !isset($this->getCleanStateFields()[$field])) {
21 21
                 $this->addField([
22 22
                     'name' => $field,
23 23
                     'label' => $this->makeLabel($field),
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 ]);
31 31
             }
32 32
 
33
-            if ($setColumns && ! in_array($field, $this->getModel()->getHidden()) && ! isset($this->columns()[$field])) {
33
+            if ($setColumns && !in_array($field, $this->getModel()->getHidden()) && !isset($this->columns()[$field])) {
34 34
                 $this->addColumn([
35 35
                     'name' => $field,
36 36
                     'label' => $this->makeLabel($field),
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $dbColumnTypes = [];
54 54
 
55
-        if (! $this->driverIsSql()) {
55
+        if (!$this->driverIsSql()) {
56 56
             return $dbColumnTypes;
57 57
         }
58 58
         $dbColumns = $this->getDbTableColumns();
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         $dbColumnTypes = $this->getDbColumnTypes();
119 119
 
120
-        if (! isset($dbColumnTypes[$fieldName])) {
120
+        if (!isset($dbColumnTypes[$fieldName])) {
121 121
             return 'text';
122 122
         }
123 123
 
@@ -212,12 +212,12 @@  discard block
 block discarded – undo
212 212
     {
213 213
         $fillable = $this->model->getFillable();
214 214
 
215
-        if (! $this->driverIsSql()) {
215
+        if (!$this->driverIsSql()) {
216 216
             $columns = $fillable;
217 217
         } else {
218 218
             // Automatically-set columns should be both in the database, and in the $fillable variable on the Eloquent Model
219 219
             $columns = $this->model::getDbTableSchema()->getColumnsNames();
220
-            if (! empty($fillable)) {
220
+            if (!empty($fillable)) {
221 221
                 $columns = array_intersect($columns, $fillable);
222 222
             }
223 223
         }
Please login to merge, or discard this patch.
src/BackpackManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     public function getControllerCrud(string $controller): CrudPanel
64 64
     {
65
-        if (! isset($this->cruds[$controller])) {
65
+        if (!isset($this->cruds[$controller])) {
66 66
             return $this->crudFromController($this->requestController ?? $controller);
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/BackpackServiceProvider.php 1 patch
Spacing   +17 added lines, -19 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $this->registerBackpackErrorViews();
86 86
 
87 87
         // Bind the CrudPanel object to Laravel's service container
88
-        $this->app->bind('crud', function ($app) {
88
+        $this->app->bind('crud', function($app) {
89 89
             // Prioritize explicit controller context
90 90
             $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
91 91
             $controller = null;
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             // Fallback to a more robust initialization
107 107
             $cruds = Backpack::getCruds();
108 108
 
109
-            if (! empty($cruds)) {
109
+            if (!empty($cruds)) {
110 110
                
111 111
                 $crudPanel = reset($cruds);
112 112
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         });
119 119
 
120 120
         // Bind a special CrudPanel object for the CrudPanelFacade
121
-        $this->app->bind('backpack.crud', function ($app) {
121
+        $this->app->bind('backpack.crud', function($app) {
122 122
             // Similar logic to 'crud' binding
123 123
             $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
124 124
             $controller = null;
@@ -138,28 +138,28 @@  discard block
 block discarded – undo
138 138
             return Backpack::getCrudPanelInstance();
139 139
         });
140 140
 
141
-        $this->app->scoped('backpack-manager', function ($app) {
141
+        $this->app->scoped('backpack-manager', function($app) {
142 142
             return new BackpackManager();
143 143
         });
144 144
 
145
-        $this->app->scoped('DatabaseSchema', function ($app) {
145
+        $this->app->scoped('DatabaseSchema', function($app) {
146 146
             return new DatabaseSchema();
147 147
         });
148 148
 
149
-        $this->app->scoped('BackpackLifecycleHooks', function ($app) {
149
+        $this->app->scoped('BackpackLifecycleHooks', function($app) {
150 150
             return new app\Library\CrudPanel\Hooks\LifecycleHooks();
151 151
         });
152 152
 
153
-        $this->app->singleton('BackpackViewNamespaces', function ($app) {
153
+        $this->app->singleton('BackpackViewNamespaces', function($app) {
154 154
             return new ViewNamespaces();
155 155
         });
156 156
 
157 157
         // Bind the widgets collection object to Laravel's service container
158
-        $this->app->singleton('widgets', function ($app) {
158
+        $this->app->singleton('widgets', function($app) {
159 159
             return new Collection();
160 160
         });
161 161
 
162
-        $this->app->scoped('UploadersRepository', function ($app) {
162
+        $this->app->scoped('UploadersRepository', function($app) {
163 163
             return new UploadersRepository();
164 164
         });
165 165
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $middleware_key = config('backpack.base.middleware_key');
176 176
         $middleware_class = config('backpack.base.middleware_class');
177 177
 
178
-        if (! is_array($middleware_class)) {
178
+        if (!is_array($middleware_class)) {
179 179
             $router->pushMiddlewareToGroup($middleware_key, $middleware_class);
180 180
 
181 181
             return;
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         $configs = scandir(__DIR__."/config/backpack/$dir/");
291 291
         $configs = array_diff($configs, ['.', '..']);
292 292
 
293
-        if (! count($configs)) {
293
+        if (!count($configs)) {
294 294
             return;
295 295
         }
296 296
 
@@ -339,8 +339,7 @@  discard block
 block discarded – undo
339 339
         // add the backpack_users password broker to the configuration
340 340
         $laravelAuthPasswordBrokers = app()->config['auth.passwords'];
341 341
         $laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ?
342
-                                        current($laravelAuthPasswordBrokers)['table'] :
343
-                                        '';
342
+                                        current($laravelAuthPasswordBrokers)['table'] : '';
344 343
 
345 344
         $backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ??
346 345
                                         config('auth.passwords.users.table') ??
@@ -368,7 +367,7 @@  discard block
 block discarded – undo
368 367
 
369 368
     public function loadViewComponents()
370 369
     {
371
-        $this->app->afterResolving(BladeCompiler::class, function () {
370
+        $this->app->afterResolving(BladeCompiler::class, function() {
372 371
             Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack');
373 372
         });
374 373
     }
@@ -394,13 +393,13 @@  discard block
 block discarded – undo
394 393
     private function registerBackpackErrorViews()
395 394
     {
396 395
         // register the backpack error when the exception handler is resolved from the container
397
-        $this->callAfterResolving(ExceptionHandler::class, function ($handler) {
398
-            if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
396
+        $this->callAfterResolving(ExceptionHandler::class, function($handler) {
397
+            if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
399 398
                 return;
400 399
             }
401 400
 
402 401
             // parse the namespaces set in config
403
-            [$themeNamespace, $themeFallbackNamespace] = (function () {
402
+            [$themeNamespace, $themeFallbackNamespace] = (function() {
404 403
                 $themeNamespace = config('backpack.ui.view_namespace');
405 404
                 $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback');
406 405
 
@@ -417,8 +416,7 @@  discard block
 block discarded – undo
417 416
             // - fallback theme paths
418 417
             // - ui path
419 418
             $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? [];
420
-            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths :
421
-                array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
419
+            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
422 420
             $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')];
423 421
             $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths);
424 422
 
Please login to merge, or discard this patch.