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 ( 863f17...49cc78 )
by Pedro
13:04
created
src/BackpackServiceProvider.php 1 patch
Spacing   +16 added lines, -18 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $this->registerBackpackErrorViews();
85 85
 
86
-        $this->app->bind('crud', function ($app) {
86
+        $this->app->bind('crud', function($app) {
87 87
             if (CrudManager::getActiveController()) {
88 88
                 return CrudManager::crudFromController(CrudManager::getActiveController());
89 89
             }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
             $cruds = CrudManager::getCruds();
110 110
 
111
-            if (! empty($cruds)) {
111
+            if (!empty($cruds)) {
112 112
                 $crudPanel = reset($cruds);
113 113
 
114 114
                 return $crudPanel;
@@ -117,28 +117,28 @@  discard block
 block discarded – undo
117 117
             return CrudManager::getCrudPanelInstance();
118 118
         });
119 119
 
120
-        $this->app->scoped('crud-manager', function ($app) {
120
+        $this->app->scoped('crud-manager', function($app) {
121 121
             return new CrudPanelManager();
122 122
         });
123 123
 
124
-        $this->app->scoped('DatabaseSchema', function ($app) {
124
+        $this->app->scoped('DatabaseSchema', function($app) {
125 125
             return new DatabaseSchema();
126 126
         });
127 127
 
128
-        $this->app->scoped('BackpackLifecycleHooks', function ($app) {
128
+        $this->app->scoped('BackpackLifecycleHooks', function($app) {
129 129
             return new app\Library\CrudPanel\Hooks\LifecycleHooks();
130 130
         });
131 131
 
132
-        $this->app->singleton('BackpackViewNamespaces', function ($app) {
132
+        $this->app->singleton('BackpackViewNamespaces', function($app) {
133 133
             return new ViewNamespaces();
134 134
         });
135 135
 
136 136
         // Bind the widgets collection object to Laravel's service container
137
-        $this->app->singleton('widgets', function ($app) {
137
+        $this->app->singleton('widgets', function($app) {
138 138
             return new Collection();
139 139
         });
140 140
 
141
-        $this->app->scoped('UploadersRepository', function ($app) {
141
+        $this->app->scoped('UploadersRepository', function($app) {
142 142
             return new UploadersRepository();
143 143
         });
144 144
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $middleware_key = config('backpack.base.middleware_key');
155 155
         $middleware_class = config('backpack.base.middleware_class');
156 156
 
157
-        if (! is_array($middleware_class)) {
157
+        if (!is_array($middleware_class)) {
158 158
             $router->pushMiddlewareToGroup($middleware_key, $middleware_class);
159 159
 
160 160
             return;
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
         $configs = scandir(__DIR__."/config/backpack/$dir/");
270 270
         $configs = array_diff($configs, ['.', '..']);
271 271
 
272
-        if (! count($configs)) {
272
+        if (!count($configs)) {
273 273
             return;
274 274
         }
275 275
 
@@ -318,8 +318,7 @@  discard block
 block discarded – undo
318 318
         // add the backpack_users password broker to the configuration
319 319
         $laravelAuthPasswordBrokers = app()->config['auth.passwords'];
320 320
         $laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ?
321
-                                        current($laravelAuthPasswordBrokers)['table'] :
322
-                                        '';
321
+                                        current($laravelAuthPasswordBrokers)['table'] : '';
323 322
 
324 323
         $backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ??
325 324
                                         config('auth.passwords.users.table') ??
@@ -347,7 +346,7 @@  discard block
 block discarded – undo
347 346
 
348 347
     public function loadViewComponents()
349 348
     {
350
-        $this->app->afterResolving(BladeCompiler::class, function () {
349
+        $this->app->afterResolving(BladeCompiler::class, function() {
351 350
             Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack');
352 351
         });
353 352
     }
@@ -373,13 +372,13 @@  discard block
 block discarded – undo
373 372
     private function registerBackpackErrorViews()
374 373
     {
375 374
         // register the backpack error when the exception handler is resolved from the container
376
-        $this->callAfterResolving(ExceptionHandler::class, function ($handler) {
377
-            if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
375
+        $this->callAfterResolving(ExceptionHandler::class, function($handler) {
376
+            if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) {
378 377
                 return;
379 378
             }
380 379
 
381 380
             // parse the namespaces set in config
382
-            [$themeNamespace, $themeFallbackNamespace] = (function () {
381
+            [$themeNamespace, $themeFallbackNamespace] = (function() {
383 382
                 $themeNamespace = config('backpack.ui.view_namespace');
384 383
                 $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback');
385 384
 
@@ -396,8 +395,7 @@  discard block
 block discarded – undo
396 395
             // - fallback theme paths
397 396
             // - ui path
398 397
             $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? [];
399
-            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths :
400
-                array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
398
+            $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths);
401 399
             $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')];
402 400
             $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths);
403 401
 
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Hooks/LifecycleHooks.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     public array $hooks = [];
10 10
 
11
-    public function hookInto(string|array $hooks, callable $callback): void
11
+    public function hookInto(string | array $hooks, callable $callback): void
12 12
     {
13 13
         $hooks = is_array($hooks) ? $hooks : [$hooks];
14 14
         foreach ($hooks as $hook) {
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         }
17 17
     }
18 18
 
19
-    public function trigger(string|array $hooks, array $parameters = []): void
19
+    public function trigger(string | array $hooks, array $parameters = []): void
20 20
     {
21 21
         $hooks = is_array($hooks) ? $hooks : [$hooks];
22 22
         $controller = CrudManager::getActiveController() ?? CrudManager::getRequestController();
Please login to merge, or discard this patch.
src/app/Library/Datatable/Datatable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
         $controllerPart = str_replace('\\', '_', $this->controller);
29 29
         $typePart = $this->type ?? 'default';
30 30
         $namePart = $this->name ?? 'default';
31
-        $uniqueId = md5($controllerPart . '_' . $typePart . '_' . $namePart);
32
-        $this->tableId = 'crudTable_' . $uniqueId;
31
+        $uniqueId = md5($controllerPart.'_'.$typePart.'_'.$namePart);
32
+        $this->tableId = 'crudTable_'.$uniqueId;
33 33
         
34 34
         
35 35
         if ($this->configure) {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             $this->storeDatatableConfig();
41 41
         }
42 42
         
43
-        if (! $this->crud->getOperationSetting('datatablesUrl')) {
43
+        if (!$this->crud->getOperationSetting('datatablesUrl')) {
44 44
             $this->crud->setOperationSetting('datatablesUrl', $this->crud->getRoute());
45 45
         }
46 46
         
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         if ($parentCrud && $parentCrud->getCurrentEntry()) {
65 65
             $parentEntry = $parentCrud->getCurrentEntry();
66 66
             $parentController = $parentCrud->crudController;
67
-            $cacheKey = 'datatable_config_' . $this->tableId;
67
+            $cacheKey = 'datatable_config_'.$this->tableId;
68 68
             
69 69
             // Store the controller class, parent entry, element type and name
70 70
             Cache::put($cacheKey, [
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             return false;
89 89
         }
90 90
         
91
-        $cacheKey = 'datatable_config_' . $tableId;
91
+        $cacheKey = 'datatable_config_'.$tableId;
92 92
         $cachedData = Cache::get($cacheKey);
93 93
         
94 94
         if (!$cachedData) {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 return false;
144 144
             }
145 145
         } catch (\Exception $e) {
146
-            \Log::error("Error applying cached datatable config: " . $e->getMessage(), [
146
+            \Log::error("Error applying cached datatable config: ".$e->getMessage(), [
147 147
                 'exception' => $e
148 148
             ]);
149 149
         }
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
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
         //
37 37
         // It's done inside a middleware closure in order to have
38 38
         // the complete request inside the CrudPanel object.
39
-        $this->middleware(function ($request, $next) {
40
-            if (! CrudManager::hasCrudController(get_class($this))) {
39
+        $this->middleware(function($request, $next) {
40
+            if (!CrudManager::hasCrudController(get_class($this))) {
41 41
                 $this->initializeCrud($request);
42 42
 
43 43
                 return $next($request);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     protected function setupConfigurationForCurrentOperation(?string $operation = null)
144 144
     {
145 145
         $operationName = $operation ?? $this->crud->getCurrentOperation();
146
-        if (! $operationName) {
146
+        if (!$operationName) {
147 147
             return;
148 148
         }
149 149
         $setupClassName = 'setup'.Str::studly($operationName).'Operation';
Please login to merge, or discard this patch.