We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -81,24 +81,24 @@ discard block |
||
| 81 | 81 | $this->registerBackpackErrorViews(); |
| 82 | 82 | |
| 83 | 83 | // Bind the CrudPanel object to Laravel's service container |
| 84 | - $this->app->scoped('crud', function ($app) { |
|
| 84 | + $this->app->scoped('crud', function($app) { |
|
| 85 | 85 | return new CrudPanel(); |
| 86 | 86 | }); |
| 87 | 87 | |
| 88 | - $this->app->scoped('DatabaseSchema', function ($app) { |
|
| 88 | + $this->app->scoped('DatabaseSchema', function($app) { |
|
| 89 | 89 | return new DatabaseSchema(); |
| 90 | 90 | }); |
| 91 | 91 | |
| 92 | - $this->app->singleton('BackpackViewNamespaces', function ($app) { |
|
| 92 | + $this->app->singleton('BackpackViewNamespaces', function($app) { |
|
| 93 | 93 | return new ViewNamespaces(); |
| 94 | 94 | }); |
| 95 | 95 | |
| 96 | 96 | // Bind the widgets collection object to Laravel's service container |
| 97 | - $this->app->singleton('widgets', function ($app) { |
|
| 97 | + $this->app->singleton('widgets', function($app) { |
|
| 98 | 98 | return new Collection(); |
| 99 | 99 | }); |
| 100 | 100 | |
| 101 | - $this->app->scoped('UploadersRepository', function ($app) { |
|
| 101 | + $this->app->scoped('UploadersRepository', function($app) { |
|
| 102 | 102 | return new UploadersRepository(); |
| 103 | 103 | }); |
| 104 | 104 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $middleware_key = config('backpack.base.middleware_key'); |
| 115 | 115 | $middleware_class = config('backpack.base.middleware_class'); |
| 116 | 116 | |
| 117 | - if (! is_array($middleware_class)) { |
|
| 117 | + if (!is_array($middleware_class)) { |
|
| 118 | 118 | $router->pushMiddlewareToGroup($middleware_key, $middleware_class); |
| 119 | 119 | |
| 120 | 120 | return; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | $configs = scandir(__DIR__."/config/backpack/$dir/"); |
| 228 | 228 | $configs = array_diff($configs, ['.', '..']); |
| 229 | 229 | |
| 230 | - if (! count($configs)) { |
|
| 230 | + if (!count($configs)) { |
|
| 231 | 231 | return; |
| 232 | 232 | } |
| 233 | 233 | |
@@ -276,8 +276,7 @@ discard block |
||
| 276 | 276 | // add the backpack_users password broker to the configuration |
| 277 | 277 | $laravelAuthPasswordBrokers = app()->config['auth.passwords']; |
| 278 | 278 | $laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ? |
| 279 | - current($laravelAuthPasswordBrokers)['table'] : |
|
| 280 | - ''; |
|
| 279 | + current($laravelAuthPasswordBrokers)['table'] : ''; |
|
| 281 | 280 | |
| 282 | 281 | $backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ?? |
| 283 | 282 | config('auth.passwords.users.table') ?? |
@@ -305,7 +304,7 @@ discard block |
||
| 305 | 304 | |
| 306 | 305 | public function loadViewComponents() |
| 307 | 306 | { |
| 308 | - $this->app->afterResolving(BladeCompiler::class, function () { |
|
| 307 | + $this->app->afterResolving(BladeCompiler::class, function() { |
|
| 309 | 308 | Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack'); |
| 310 | 309 | }); |
| 311 | 310 | } |
@@ -331,13 +330,13 @@ discard block |
||
| 331 | 330 | private function registerBackpackErrorViews() |
| 332 | 331 | { |
| 333 | 332 | // register the backpack error when the exception handler is resolved from the container |
| 334 | - $this->callAfterResolving(ExceptionHandler::class, function ($handler) { |
|
| 335 | - if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) { |
|
| 333 | + $this->callAfterResolving(ExceptionHandler::class, function($handler) { |
|
| 334 | + if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) { |
|
| 336 | 335 | return; |
| 337 | 336 | } |
| 338 | 337 | |
| 339 | 338 | // parse the namespaces set in config |
| 340 | - [$themeNamespace, $themeFallbackNamespace] = (function () { |
|
| 339 | + [$themeNamespace, $themeFallbackNamespace] = (function() { |
|
| 341 | 340 | $themeNamespace = config('backpack.ui.view_namespace'); |
| 342 | 341 | $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback'); |
| 343 | 342 | |
@@ -354,8 +353,7 @@ discard block |
||
| 354 | 353 | // - fallback theme paths |
| 355 | 354 | // - ui path |
| 356 | 355 | $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? []; |
| 357 | - $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : |
|
| 358 | - array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths); |
|
| 356 | + $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths); |
|
| 359 | 357 | $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')]; |
| 360 | 358 | $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths); |
| 361 | 359 | |