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