We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public ?string $operation = 'show', |
| 20 | 20 | public ?\Closure $setup = null, |
| 21 | 21 | public ?CrudPanel $crud = null, |
| 22 | - public array|Collection $columns = [], |
|
| 22 | + public array | Collection $columns = [], |
|
| 23 | 23 | public bool $displayButtons = true |
| 24 | 24 | ) { |
| 25 | 25 | $this->setPropertiesFromController(); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | protected function setPropertiesFromController(): void |
| 35 | 35 | { |
| 36 | 36 | // If no CrudController is provided, do nothing |
| 37 | - if (! $this->controller) { |
|
| 37 | + if (!$this->controller) { |
|
| 38 | 38 | return; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -46,14 +46,14 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | // If a setup closure is provided, apply it |
| 48 | 48 | if ($this->setup) { |
| 49 | - if (! empty($columns)) { |
|
| 49 | + if (!empty($columns)) { |
|
| 50 | 50 | throw new \Exception('You cannot define both setup closure and columns for a '.class_basename(static::class).' component.'); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | ($this->setup)($this->crud, $this->entry); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - $this->columns = ! empty($columns) ? $columns : $this->crud?->getOperationSetting('columns', $this->operation) ?? []; |
|
| 56 | + $this->columns = !empty($columns) ? $columns : $this->crud?->getOperationSetting('columns', $this->operation) ?? []; |
|
| 57 | 57 | |
| 58 | 58 | // Reset the active controller |
| 59 | 59 | CrudManager::unsetActiveController(); |