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