We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $this->getDbColumnTypes(); |
17 | 17 | } |
18 | 18 | |
19 | - array_map(function ($field) { |
|
19 | + array_map(function($field) { |
|
20 | 20 | $new_field = [ |
21 | 21 | 'name' => $field, |
22 | 22 | 'label' => $this->makeLabel($field), |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | 'autoset' => true, |
29 | 29 | ]; |
30 | 30 | |
31 | - if (! isset($this->fields()[$field])) { |
|
31 | + if (!isset($this->fields()[$field])) { |
|
32 | 32 | $this->addField($new_field); |
33 | 33 | } |
34 | 34 | |
35 | - if (! in_array($field, $this->model->getHidden()) && ! isset($this->columns()[$field])) { |
|
35 | + if (!in_array($field, $this->model->getHidden()) && !isset($this->columns()[$field])) { |
|
36 | 36 | $this->addColumn([ |
37 | 37 | 'name' => $field, |
38 | 38 | 'label' => $this->makeLabel($field), |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | $dbColumnTypes = $this->getDbColumnTypes(); |
111 | 111 | |
112 | - if (! isset($dbColumnTypes[$fieldName])) { |
|
112 | + if (!isset($dbColumnTypes[$fieldName])) { |
|
113 | 113 | return 'text'; |
114 | 114 | } |
115 | 115 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $types = ['enum' => 'string']; |
168 | 168 | $platform = $this->getSchema()->getConnection()->getDoctrineSchemaManager()->getDatabasePlatform(); |
169 | 169 | foreach ($types as $type_key => $type_value) { |
170 | - if (! $platform->hasDoctrineTypeMappingFor($type_key)) { |
|
170 | + if (!$platform->hasDoctrineTypeMappingFor($type_key)) { |
|
171 | 171 | $platform->registerDoctrineTypeMapping($type_key, $type_value); |
172 | 172 | } |
173 | 173 | } |
@@ -218,13 +218,13 @@ discard block |
||
218 | 218 | { |
219 | 219 | $fillable = $this->model->getFillable(); |
220 | 220 | |
221 | - if (! $this->driverIsSql()) { |
|
221 | + if (!$this->driverIsSql()) { |
|
222 | 222 | $columns = $fillable; |
223 | 223 | } else { |
224 | 224 | // Automatically-set columns should be both in the database, and in the $fillable variable on the Eloquent Model |
225 | 225 | $columns = $this->model->getConnection()->getSchemaBuilder()->getColumnListing($this->model->getTable()); |
226 | 226 | |
227 | - if (! empty($fillable)) { |
|
227 | + if (!empty($fillable)) { |
|
228 | 228 | $columns = array_intersect($columns, $fillable); |
229 | 229 | } |
230 | 230 | } |