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->initializeCrud($primaryControllerRequest, $crud, $operation); |
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; |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | public array $hooks = []; |
10 | 10 | |
11 | - public function hookInto(string|array $hooks, callable $callback): void |
|
11 | + public function hookInto(string | array $hooks, callable $callback): void |
|
12 | 12 | { |
13 | 13 | $hooks = is_array($hooks) ? $hooks : [$hooks]; |
14 | 14 | foreach ($hooks as $hook) { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | } |
17 | 17 | } |
18 | 18 | |
19 | - public function trigger(string|array $hooks, array $parameters = []): void |
|
19 | + public function trigger(string | array $hooks, array $parameters = []): void |
|
20 | 20 | { |
21 | 21 | $hooks = is_array($hooks) ? $hooks : [$hooks]; |
22 | 22 | $controller = CrudManager::getActiveController() ?? CrudManager::getRequestController(); |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | $controllerPart = str_replace('\\', '_', $this->controller); |
29 | 29 | $typePart = $this->type ?? 'default'; |
30 | 30 | $namePart = $this->name ?? 'default'; |
31 | - $uniqueId = md5($controllerPart . '_' . $typePart . '_' . $namePart); |
|
32 | - $this->tableId = 'crudTable_' . $uniqueId; |
|
31 | + $uniqueId = md5($controllerPart.'_'.$typePart.'_'.$namePart); |
|
32 | + $this->tableId = 'crudTable_'.$uniqueId; |
|
33 | 33 | |
34 | 34 | |
35 | 35 | if ($this->configure) { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $this->storeDatatableConfig(); |
41 | 41 | } |
42 | 42 | |
43 | - if (! $this->crud->getOperationSetting('datatablesUrl')) { |
|
43 | + if (!$this->crud->getOperationSetting('datatablesUrl')) { |
|
44 | 44 | $this->crud->setOperationSetting('datatablesUrl', $this->crud->getRoute()); |
45 | 45 | } |
46 | 46 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | if ($parentCrud && $parentCrud->getCurrentEntry()) { |
65 | 65 | $parentEntry = $parentCrud->getCurrentEntry(); |
66 | 66 | $parentController = $parentCrud->crudController; |
67 | - $cacheKey = 'datatable_config_' . $this->tableId; |
|
67 | + $cacheKey = 'datatable_config_'.$this->tableId; |
|
68 | 68 | |
69 | 69 | // Store the controller class, parent entry, element type and name |
70 | 70 | Cache::put($cacheKey, [ |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | return false; |
89 | 89 | } |
90 | 90 | |
91 | - $cacheKey = 'datatable_config_' . $tableId; |
|
91 | + $cacheKey = 'datatable_config_'.$tableId; |
|
92 | 92 | $cachedData = Cache::get($cacheKey); |
93 | 93 | |
94 | 94 | if (!$cachedData) { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | return false; |
144 | 144 | } |
145 | 145 | } catch (\Exception $e) { |
146 | - \Log::error("Error applying cached datatable config: " . $e->getMessage(), [ |
|
146 | + \Log::error("Error applying cached datatable config: ".$e->getMessage(), [ |
|
147 | 147 | 'exception' => $e |
148 | 148 | ]); |
149 | 149 | } |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | // |
37 | 37 | // It's done inside a middleware closure in order to have |
38 | 38 | // the complete request inside the CrudPanel object. |
39 | - $this->middleware(function ($request, $next) { |
|
40 | - if (! CrudManager::hasCrudController(get_class($this))) { |
|
39 | + $this->middleware(function($request, $next) { |
|
40 | + if (!CrudManager::hasCrudController(get_class($this))) { |
|
41 | 41 | $this->initializeCrud($request); |
42 | 42 | |
43 | 43 | return $next($request); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | protected function setupConfigurationForCurrentOperation(?string $operation = null) |
144 | 144 | { |
145 | 145 | $operationName = $operation ?? $this->crud->getCurrentOperation(); |
146 | - if (! $operationName) { |
|
146 | + if (!$operationName) { |
|
147 | 147 | return; |
148 | 148 | } |
149 | 149 | $setupClassName = 'setup'.Str::studly($operationName).'Operation'; |