We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -85,7 +85,7 @@ discard block |
||
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 |
||
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 | $crudPanel = reset($cruds); |
111 | 111 | |
112 | 112 | // Ensure upload events are registered |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | }); |
118 | 118 | |
119 | 119 | // Bind a special CrudPanel object for the CrudPanelFacade |
120 | - $this->app->bind('backpack.crud', function ($app) { |
|
120 | + $this->app->bind('backpack.crud', function($app) { |
|
121 | 121 | // Similar logic to 'crud' binding |
122 | 122 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
123 | 123 | $controller = null; |
@@ -138,28 +138,28 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |