We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $crud->setOperation($operation); |
55 | 55 | |
56 | 56 | $primaryControllerRequest = $this->cruds[array_key_first($this->cruds)]->getRequest(); |
57 | - if (! $crud->isInitialized()) { |
|
57 | + if (!$crud->isInitialized()) { |
|
58 | 58 | $controller->initializeCrudController($primaryControllerRequest, $crud); |
59 | 59 | } |
60 | 60 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | public function getControllerCrud(string $controller): CrudPanel |
75 | 75 | { |
76 | - if (! isset($this->cruds[$controller])) { |
|
76 | + if (!isset($this->cruds[$controller])) { |
|
77 | 77 | return $this->crudFromController($this->getActiveController() ?? $this->requestController ?? $controller); |
78 | 78 | } |
79 | 79 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $cruds = self::getCruds(); |
129 | 129 | |
130 | - if (! empty($cruds)) { |
|
130 | + if (!empty($cruds)) { |
|
131 | 131 | $crudPanel = reset($cruds); |
132 | 132 | |
133 | 133 | return $crudPanel; |
@@ -83,32 +83,32 @@ discard block |
||
83 | 83 | |
84 | 84 | $this->registerBackpackErrorViews(); |
85 | 85 | |
86 | - $this->app->bind('crud', function ($app) { |
|
86 | + $this->app->bind('crud', function($app) { |
|
87 | 87 | return CrudManager::getCrudPanel(); |
88 | 88 | }); |
89 | 89 | |
90 | - $this->app->scoped('crud-manager', function ($app) { |
|
90 | + $this->app->scoped('crud-manager', function($app) { |
|
91 | 91 | return new CrudPanelManager(); |
92 | 92 | }); |
93 | 93 | |
94 | - $this->app->scoped('DatabaseSchema', function ($app) { |
|
94 | + $this->app->scoped('DatabaseSchema', function($app) { |
|
95 | 95 | return new DatabaseSchema(); |
96 | 96 | }); |
97 | 97 | |
98 | - $this->app->scoped('BackpackLifecycleHooks', function ($app) { |
|
98 | + $this->app->scoped('BackpackLifecycleHooks', function($app) { |
|
99 | 99 | return new app\Library\CrudPanel\Hooks\LifecycleHooks(); |
100 | 100 | }); |
101 | 101 | |
102 | - $this->app->singleton('BackpackViewNamespaces', function ($app) { |
|
102 | + $this->app->singleton('BackpackViewNamespaces', function($app) { |
|
103 | 103 | return new ViewNamespaces(); |
104 | 104 | }); |
105 | 105 | |
106 | 106 | // Bind the widgets collection object to Laravel's service container |
107 | - $this->app->singleton('widgets', function ($app) { |
|
107 | + $this->app->singleton('widgets', function($app) { |
|
108 | 108 | return new Collection(); |
109 | 109 | }); |
110 | 110 | |
111 | - $this->app->scoped('UploadersRepository', function ($app) { |
|
111 | + $this->app->scoped('UploadersRepository', function($app) { |
|
112 | 112 | return new UploadersRepository(); |
113 | 113 | }); |
114 | 114 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $middleware_key = config('backpack.base.middleware_key'); |
125 | 125 | $middleware_class = config('backpack.base.middleware_class'); |
126 | 126 | |
127 | - if (! is_array($middleware_class)) { |
|
127 | + if (!is_array($middleware_class)) { |
|
128 | 128 | $router->pushMiddlewareToGroup($middleware_key, $middleware_class); |
129 | 129 | |
130 | 130 | return; |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | $configs = scandir(__DIR__."/config/backpack/$dir/"); |
240 | 240 | $configs = array_diff($configs, ['.', '..']); |
241 | 241 | |
242 | - if (! count($configs)) { |
|
242 | + if (!count($configs)) { |
|
243 | 243 | return; |
244 | 244 | } |
245 | 245 | |
@@ -288,8 +288,7 @@ discard block |
||
288 | 288 | // add the backpack_users password broker to the configuration |
289 | 289 | $laravelAuthPasswordBrokers = app()->config['auth.passwords']; |
290 | 290 | $laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ? |
291 | - current($laravelAuthPasswordBrokers)['table'] : |
|
292 | - ''; |
|
291 | + current($laravelAuthPasswordBrokers)['table'] : ''; |
|
293 | 292 | |
294 | 293 | $backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ?? |
295 | 294 | config('auth.passwords.users.table') ?? |
@@ -317,7 +316,7 @@ discard block |
||
317 | 316 | |
318 | 317 | public function loadViewComponents() |
319 | 318 | { |
320 | - $this->app->afterResolving(BladeCompiler::class, function () { |
|
319 | + $this->app->afterResolving(BladeCompiler::class, function() { |
|
321 | 320 | Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack'); |
322 | 321 | }); |
323 | 322 | } |
@@ -343,13 +342,13 @@ discard block |
||
343 | 342 | private function registerBackpackErrorViews() |
344 | 343 | { |
345 | 344 | // register the backpack error when the exception handler is resolved from the container |
346 | - $this->callAfterResolving(ExceptionHandler::class, function ($handler) { |
|
347 | - if (! Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) { |
|
345 | + $this->callAfterResolving(ExceptionHandler::class, function($handler) { |
|
346 | + if (!Str::startsWith(request()->path(), config('backpack.base.route_prefix'))) { |
|
348 | 347 | return; |
349 | 348 | } |
350 | 349 | |
351 | 350 | // parse the namespaces set in config |
352 | - [$themeNamespace, $themeFallbackNamespace] = (function () { |
|
351 | + [$themeNamespace, $themeFallbackNamespace] = (function() { |
|
353 | 352 | $themeNamespace = config('backpack.ui.view_namespace'); |
354 | 353 | $themeFallbackNamespace = config('backpack.ui.view_namespace_fallback'); |
355 | 354 | |
@@ -366,8 +365,7 @@ discard block |
||
366 | 365 | // - fallback theme paths |
367 | 366 | // - ui path |
368 | 367 | $themeErrorPaths = $viewFinderHints[$themeNamespace] ?? []; |
369 | - $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : |
|
370 | - array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths); |
|
368 | + $themeErrorPaths = $themeNamespace === $themeFallbackNamespace ? $themeErrorPaths : array_merge($viewFinderHints[$themeFallbackNamespace] ?? [], $themeErrorPaths); |
|
371 | 369 | $uiErrorPaths = [base_path('vendor/backpack/crud/src/resources/views/ui')]; |
372 | 370 | $themeErrorPaths = array_merge($themeErrorPaths, $uiErrorPaths); |
373 | 371 |
@@ -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 (! CrudManager::hasCrudController(get_class($this))) { |
|
37 | + $this->middleware(function($request, $next) { |
|
38 | + if (!CrudManager::hasCrudController(get_class($this))) { |
|
39 | 39 | $this->initializeCrudController($request); |
40 | 40 | |
41 | 41 | return $next($request); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $crudPanel->initialize(get_class($this), $request); |
57 | 57 | |
58 | - if(! $crudPanel->isInitialized()) { |
|
58 | + if (!$crudPanel->isInitialized()) { |
|
59 | 59 | $crudPanel->initialized = true; |
60 | 60 | $this->setupCrudController(); |
61 | 61 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | protected function setupConfigurationForCurrentOperation(?string $operation = null) |
128 | 128 | { |
129 | 129 | $operationName = $operation ?? $this->crud->getCurrentOperation(); |
130 | - if (! $operationName) { |
|
130 | + if (!$operationName) { |
|
131 | 131 | return; |
132 | 132 | } |
133 | 133 | $setupClassName = 'setup'.Str::studly($operationName).'Operation'; |