We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $column = ['name' => $column]; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - if (is_array($column) && ! isset($column['name'])) { |
|
| 52 | + if (is_array($column) && !isset($column['name'])) { |
|
| 53 | 53 | $column['name'] = 'anonymous_column_'.Str::random(5); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | protected function makeSureColumnHasLabel($column) |
| 67 | 67 | { |
| 68 | - if (! isset($column['label'])) { |
|
| 68 | + if (!isset($column['label'])) { |
|
| 69 | 69 | $column['label'] = mb_ucfirst($this->makeLabel($column['name'])); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -82,11 +82,11 @@ discard block |
||
| 82 | 82 | { |
| 83 | 83 | $could_be_relation = isset($column['entity']) && $column['entity'] !== false; |
| 84 | 84 | |
| 85 | - if (! isset($column['type']) && $could_be_relation) { |
|
| 85 | + if (!isset($column['type']) && $could_be_relation) { |
|
| 86 | 86 | $column['type'] = 'relationship'; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - if (! isset($column['type'])) { |
|
| 89 | + if (!isset($column['type'])) { |
|
| 90 | 90 | $column['type'] = 'text'; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | protected function makeSureColumnHasKey($column) |
| 105 | 105 | { |
| 106 | - if (! isset($column['key'])) { |
|
| 106 | + if (!isset($column['key'])) { |
|
| 107 | 107 | $column['key'] = str_replace('.', '__', $column['name']); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | protected function makeSureColumnHasWrapper($column) |
| 123 | 123 | { |
| 124 | - if (! isset($column['wrapper'])) { |
|
| 124 | + if (!isset($column['wrapper'])) { |
|
| 125 | 125 | $column['wrapper'] = []; |
| 126 | 126 | } |
| 127 | 127 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - if (! isset($column['type'])) { |
|
| 165 | + if (!isset($column['type'])) { |
|
| 166 | 166 | $column['name'] = $column['entity'] = $relation; |
| 167 | 167 | } |
| 168 | 168 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | { |
| 210 | 210 | // if this is a relation type field and no corresponding model was specified, |
| 211 | 211 | // get it from the relation method defined in the main model |
| 212 | - if (isset($column['entity']) && $column['entity'] !== false && ! isset($column['model'])) { |
|
| 212 | + if (isset($column['entity']) && $column['entity'] !== false && !isset($column['model'])) { |
|
| 213 | 213 | $column['model'] = $this->getRelationModel($column['entity']); |
| 214 | 214 | } |
| 215 | 215 | |
@@ -230,8 +230,7 @@ discard block |
||
| 230 | 230 | $columnsArray = $this->columns(); |
| 231 | 231 | |
| 232 | 232 | if (array_key_exists($targetColumnName, $columnsArray)) { |
| 233 | - $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : |
|
| 234 | - array_search($targetColumnName, array_keys($columnsArray)) + 1; |
|
| 233 | + $targetColumnPosition = $before ? array_search($targetColumnName, array_keys($columnsArray)) : array_search($targetColumnName, array_keys($columnsArray)) + 1; |
|
| 235 | 234 | |
| 236 | 235 | $element = array_pop($columnsArray); |
| 237 | 236 | $beginningPart = array_slice($columnsArray, 0, $targetColumnPosition, true); |
@@ -254,7 +253,7 @@ discard block |
||
| 254 | 253 | { |
| 255 | 254 | static $cache = []; |
| 256 | 255 | |
| 257 | - if (! $this->driverIsSql()) { |
|
| 256 | + if (!$this->driverIsSql()) { |
|
| 258 | 257 | return true; |
| 259 | 258 | } |
| 260 | 259 | |