We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | // |
| 35 | 35 | // It's done inside a middleware closure in order to have |
| 36 | 36 | // the complete request inside the CrudPanel object. |
| 37 | - $this->middleware(function ($request, $next) { |
|
| 38 | - if (! Backpack::hasCrudController(get_class($this))) { |
|
| 37 | + $this->middleware(function($request, $next) { |
|
| 38 | + if (!Backpack::hasCrudController(get_class($this))) { |
|
| 39 | 39 | $this->initializeCrud($request); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | protected function setupConfigurationForCurrentOperation(?string $operation = null) |
| 104 | 104 | { |
| 105 | 105 | $operationName = $operation ?? $this->crud->getCurrentOperation(); |
| 106 | - if (! $operationName) { |
|
| 106 | + if (!$operationName) { |
|
| 107 | 107 | return; |
| 108 | 108 | } |
| 109 | 109 | |
@@ -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 | // loop the stack trace to find the CrudControllerContract that called this method |
| 90 | 90 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
| 91 | 91 | $controller = null; |
@@ -95,31 +95,31 @@ discard block |
||
| 95 | 95 | break; |
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | - if (! $controller) { |
|
| 98 | + if (!$controller) { |
|
| 99 | 99 | throw new \Exception('Could not identify the crud controller method. You sure you are calling this from a CrudController?'); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | return Backpack::getControllerCrud($controller); |
| 103 | 103 | }); |
| 104 | 104 | |
| 105 | - $this->app->scoped('backpack-manager', function ($app) { |
|
| 105 | + $this->app->scoped('backpack-manager', function($app) { |
|
| 106 | 106 | return new BackpackManager(); |
| 107 | 107 | }); |
| 108 | 108 | |
| 109 | - $this->app->scoped('DatabaseSchema', function ($app) { |
|
| 109 | + $this->app->scoped('DatabaseSchema', function($app) { |
|
| 110 | 110 | return new DatabaseSchema(); |
| 111 | 111 | }); |
| 112 | 112 | |
| 113 | - $this->app->singleton('BackpackViewNamespaces', function ($app) { |
|
| 113 | + $this->app->singleton('BackpackViewNamespaces', function($app) { |
|
| 114 | 114 | return new ViewNamespaces(); |
| 115 | 115 | }); |
| 116 | 116 | |
| 117 | 117 | // Bind the widgets collection object to Laravel's service container |
| 118 | - $this->app->singleton('widgets', function ($app) { |
|
| 118 | + $this->app->singleton('widgets', function($app) { |
|
| 119 | 119 | return new Collection(); |
| 120 | 120 | }); |
| 121 | 121 | |
| 122 | - $this->app->scoped('UploadersRepository', function ($app) { |
|
| 122 | + $this->app->scoped('UploadersRepository', function($app) { |
|
| 123 | 123 | return new UploadersRepository(); |
| 124 | 124 | }); |
| 125 | 125 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | $middleware_key = config('backpack.base.middleware_key'); |
| 136 | 136 | $middleware_class = config('backpack.base.middleware_class'); |
| 137 | 137 | |
| 138 | - if (! is_array($middleware_class)) { |
|
| 138 | + if (!is_array($middleware_class)) { |
|
| 139 | 139 | $router->pushMiddlewareToGroup($middleware_key, $middleware_class); |
| 140 | 140 | |
| 141 | 141 | return; |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | $configs = scandir(__DIR__."/config/backpack/$dir/"); |
| 251 | 251 | $configs = array_diff($configs, ['.', '..']); |
| 252 | 252 | |
| 253 | - if (! count($configs)) { |
|
| 253 | + if (!count($configs)) { |
|
| 254 | 254 | return; |
| 255 | 255 | } |
| 256 | 256 | |
@@ -299,8 +299,7 @@ discard block |
||
| 299 | 299 | // add the backpack_users password broker to the configuration |
| 300 | 300 | $laravelAuthPasswordBrokers = app()->config['auth.passwords']; |
| 301 | 301 | $laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ? |
| 302 | - current($laravelAuthPasswordBrokers)['table'] : |
|
| 303 | - ''; |
|
| 302 | + current($laravelAuthPasswordBrokers)['table'] : ''; |
|
| 304 | 303 | |
| 305 | 304 | $backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ?? |
| 306 | 305 | config('auth.passwords.users.table') ?? |
@@ -328,7 +327,7 @@ discard block |
||
| 328 | 327 | |
| 329 | 328 | public function loadViewComponents() |
| 330 | 329 | { |
| 331 | - $this->app->afterResolving(BladeCompiler::class, function () { |
|
| 330 | + $this->app->afterResolving(BladeCompiler::class, function() { |
|
| 332 | 331 | Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack'); |
| 333 | 332 | }); |
| 334 | 333 | } |
@@ -354,13 +353,13 @@ discard block |
||
| 354 | 353 | private function registerBackpackErrorViews() |
| 355 | 354 | { |
| 356 | 355 | // register the backpack error when the exception handler is resolved from the container |
| 357 | - $this->callAfterResolving(ExceptionHandler::class, function ($handler) { |
|
| 358 | - if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) { |
|
| 356 | + $this->callAfterResolving(ExceptionHandler::class, function($handler) { |
|
| 357 | + if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) { |
|
| 359 | 358 | return; |
| 360 | 359 | } |
| 361 | 360 | |
| 362 | 361 | // parse the namespaces set in config |
| 363 | - [$themeNamespace, $themeFallbackNamespace] = (function () { |
|
| 362 | + [$themeNamespace, $themeFallbackNamespace] = (function() { |
|
| 364 | 363 | $themeNamespace = config('backpack.ui.view_namespace'); |
| 365 | 364 | $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback'); |
| 366 | 365 | |
@@ -377,8 +376,7 @@ discard block |
||
| 377 | 376 | // - fallback theme paths |
| 378 | 377 | // - ui path |
| 379 | 378 | $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? []; |
| 380 | - $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : |
|
| 381 | - array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths); |
|
| 379 | + $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths); |
|
| 382 | 380 | $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')]; |
| 383 | 381 | $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths); |
| 384 | 382 | |