We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | private ?string $currentlyActiveCrudController = null; |
| 17 | 17 | |
| 18 | - public function getCrudPanel(CrudControllerContract|string $controller): CrudPanel |
|
| 18 | + public function getCrudPanel(CrudControllerContract | string $controller): CrudPanel |
|
| 19 | 19 | { |
| 20 | 20 | $controllerClass = is_string($controller) ? $controller : get_class($controller); |
| 21 | 21 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $crud->setOperation($operation); |
| 44 | 44 | |
| 45 | 45 | $primaryControllerRequest = $this->cruds[array_key_first($this->cruds)]->getRequest(); |
| 46 | - if (! $crud->isInitialized()) { |
|
| 46 | + if (!$crud->isInitialized()) { |
|
| 47 | 47 | self::setActiveController($controller::class); |
| 48 | 48 | $controller->initializeCrudPanel($primaryControllerRequest, $crud); |
| 49 | 49 | self::unsetActiveController(); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | public function getActiveCrudPanel(string $controller): CrudPanel |
| 79 | 79 | { |
| 80 | - if (! isset($this->cruds[$controller])) { |
|
| 80 | + if (!isset($this->cruds[$controller])) { |
|
| 81 | 81 | return $this->getCrudPanel($this->getActiveController() ?? $this->getParentController() ?? $controller); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | public function getParentController(): ?string |
| 88 | 88 | { |
| 89 | - if (! empty($this->cruds)) { |
|
| 89 | + if (!empty($this->cruds)) { |
|
| 90 | 90 | return array_key_first($this->cruds); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | $cruds = $this->getCrudPanels(); |
| 137 | 137 | |
| 138 | - if (! empty($cruds)) { |
|
| 138 | + if (!empty($cruds)) { |
|
| 139 | 139 | $crudPanel = reset($cruds); |
| 140 | 140 | |
| 141 | 141 | return $crudPanel; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $this->tableId = $this->generateTableId(); |
| 28 | 28 | |
| 29 | 29 | if ($this->setup) { |
| 30 | - // Apply the configuration using the shared method |
|
| 30 | + // Apply the configuration using the shared method |
|
| 31 | 31 | $this->applySetupClosure($this->crud, $this->controller, $this->setup, $this->getParentCrudEntry()); |
| 32 | 32 | $this->cacheSetupClosure(); |
| 33 | 33 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $this->cacheSetupClosure(); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - if (! $this->crud->has('list.datatablesUrl')) { |
|
| 35 | + if (!$this->crud->has('list.datatablesUrl')) { |
|
| 36 | 36 | $this->crud->set('list.datatablesUrl', $this->crud->getRoute()); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | private function cacheSetupClosure() |
| 93 | 93 | { |
| 94 | - if (! $this->setup) { |
|
| 94 | + if (!$this->setup) { |
|
| 95 | 95 | return; |
| 96 | 96 | } |
| 97 | 97 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | { |
| 124 | 124 | $tableId = request('datatable_id'); |
| 125 | 125 | |
| 126 | - if (! $tableId) { |
|
| 126 | + if (!$tableId) { |
|
| 127 | 127 | \Log::debug('Missing datatable_id in request parameters'); |
| 128 | 128 | |
| 129 | 129 | return false; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $cacheKey = 'datatable_config_'.$tableId; |
| 133 | 133 | $cachedData = Cache::get($cacheKey); |
| 134 | 134 | |
| 135 | - if (! $cachedData) { |
|
| 135 | + if (!$cachedData) { |
|
| 136 | 136 | return false; |
| 137 | 137 | } |
| 138 | 138 | |