We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | return ['name' => Str::replace(' ', '', $column)]; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - if (is_array($column) && ! isset($column['name'])) { |
|
| 53 | + if (is_array($column) && !isset($column['name'])) { |
|
| 54 | 54 | $column['name'] = 'anonymous_column_'.Str::random(5); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | protected function makeSureColumnHasLabel($column) |
| 70 | 70 | { |
| 71 | - if (! isset($column['label'])) { |
|
| 71 | + if (!isset($column['label'])) { |
|
| 72 | 72 | $column['label'] = mb_ucfirst($this->makeLabel($column['name'])); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | */ |
| 154 | 154 | protected function makeSureColumnHasKey($column) |
| 155 | 155 | { |
| 156 | - if (! isset($column['key'])) { |
|
| 156 | + if (!isset($column['key'])) { |
|
| 157 | 157 | $column['key'] = str_replace('.', '__', $column['name']); |
| 158 | 158 | } |
| 159 | 159 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | */ |
| 171 | 171 | protected function makeSureColumnHasWrapper($column) |
| 172 | 172 | { |
| 173 | - if (! isset($column['wrapper'])) { |
|
| 173 | + if (!isset($column['wrapper'])) { |
|
| 174 | 174 | $column['wrapper'] = []; |
| 175 | 175 | } |
| 176 | 176 | |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | { |
| 256 | 256 | // if this is a relation type field and no corresponding model was specified, |
| 257 | 257 | // get it from the relation method defined in the main model |
| 258 | - if (isset($column['entity']) && $column['entity'] !== false && ! isset($column['model'])) { |
|
| 258 | + if (isset($column['entity']) && $column['entity'] !== false && !isset($column['model'])) { |
|
| 259 | 259 | $column['model'] = $this->getRelationModel($column['entity']); |
| 260 | 260 | } |
| 261 | 261 | |
@@ -294,8 +294,7 @@ discard block |
||
| 294 | 294 | $targetColumnName = str_replace('.', '__', $targetColumnName); |
| 295 | 295 | |
| 296 | 296 | if (array_key_exists($targetColumnName, $columnsArray)) { |
| 297 | - $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : |
|
| 298 | - array_search($targetColumnName, array_keys($columnsArray)) + 1; |
|
| 297 | + $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : array_search($targetColumnName, array_keys($columnsArray)) + 1; |
|
| 299 | 298 | |
| 300 | 299 | $element = array_pop($columnsArray); |
| 301 | 300 | |
@@ -324,7 +323,7 @@ discard block |
||
| 324 | 323 | { |
| 325 | 324 | static $cache = []; |
| 326 | 325 | |
| 327 | - if (! $this->driverIsSql()) { |
|
| 326 | + if (!$this->driverIsSql()) { |
|
| 328 | 327 | return true; |
| 329 | 328 | } |
| 330 | 329 | |
@@ -340,7 +339,7 @@ discard block |
||
| 340 | 339 | /** |
| 341 | 340 | * Prepare the column attributes and add it to operation settings. |
| 342 | 341 | */ |
| 343 | - private function prepareAttributesAndAddColumn(array|string $column): CrudColumn |
|
| 342 | + private function prepareAttributesAndAddColumn(array | string $column): CrudColumn |
|
| 344 | 343 | { |
| 345 | 344 | $column = $this->makeSureColumnHasNeededAttributes($column); |
| 346 | 345 | $this->addColumnToOperationSettings($column); |