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 | |
@@ -292,8 +292,7 @@ discard block |
||
292 | 292 | $columnsArray = $this->columns(); |
293 | 293 | |
294 | 294 | if (array_key_exists($targetColumnName, $columnsArray)) { |
295 | - $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : |
|
296 | - array_search($targetColumnName, array_keys($columnsArray)) + 1; |
|
295 | + $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : array_search($targetColumnName, array_keys($columnsArray)) + 1; |
|
297 | 296 | |
298 | 297 | $element = array_pop($columnsArray); |
299 | 298 | |
@@ -322,7 +321,7 @@ discard block |
||
322 | 321 | { |
323 | 322 | static $cache = []; |
324 | 323 | |
325 | - if (! $this->driverIsSql()) { |
|
324 | + if (!$this->driverIsSql()) { |
|
326 | 325 | return true; |
327 | 326 | } |
328 | 327 | |
@@ -338,7 +337,7 @@ discard block |
||
338 | 337 | /** |
339 | 338 | * Prepare the column attributes and add it to operation settings. |
340 | 339 | */ |
341 | - private function prepareAttributesAndAddColumn(array|string $column): CrudColumn |
|
340 | + private function prepareAttributesAndAddColumn(array | string $column): CrudColumn |
|
342 | 341 | { |
343 | 342 | $column = $this->makeSureColumnHasNeededAttributes($column); |
344 | 343 | $this->addColumnToOperationSettings($column); |