We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $this->setDoctrineTypesMapping(); |
18 | 18 | $this->getDbColumnTypes(); |
19 | 19 | |
20 | - array_map(function ($field) { |
|
20 | + array_map(function($field) { |
|
21 | 21 | // $this->labels[$field] = $this->makeLabel($field); |
22 | 22 | |
23 | 23 | $new_field = [ |
@@ -30,14 +30,14 @@ discard block |
||
30 | 30 | 'attributes' => [], |
31 | 31 | 'autoset' => true, |
32 | 32 | ]; |
33 | - if (! isset($this->create_fields[$field])) { |
|
33 | + if (!isset($this->create_fields[$field])) { |
|
34 | 34 | $this->create_fields[$field] = $new_field; |
35 | 35 | } |
36 | - if (! isset($this->update_fields[$field])) { |
|
36 | + if (!isset($this->update_fields[$field])) { |
|
37 | 37 | $this->update_fields[$field] = $new_field; |
38 | 38 | } |
39 | 39 | |
40 | - if (! in_array($field, $this->model->getHidden()) && ! isset($this->columns[$field])) { |
|
40 | + if (!in_array($field, $this->model->getHidden()) && !isset($this->columns[$field])) { |
|
41 | 41 | $this->columns[$field] = [ |
42 | 42 | 'name' => $field, |
43 | 43 | 'label' => ucfirst($field), |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function getFieldTypeFromDbColumnType($field) |
79 | 79 | { |
80 | - if (! array_key_exists($field, $this->db_column_types)) { |
|
80 | + if (!array_key_exists($field, $this->db_column_types)) { |
|
81 | 81 | return 'text'; |
82 | 82 | } |
83 | 83 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $types = ['enum' => 'string']; |
145 | 145 | $platform = \DB::getDoctrineConnection()->getDatabasePlatform(); |
146 | 146 | foreach ($types as $type_key => $type_value) { |
147 | - if (! $platform->hasDoctrineTypeMappingFor($type_key)) { |
|
147 | + if (!$platform->hasDoctrineTypeMappingFor($type_key)) { |
|
148 | 148 | $platform->registerDoctrineTypeMapping($type_key, $type_value); |
149 | 149 | } |
150 | 150 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $columns = $this->model->getConnection()->getSchemaBuilder()->getColumnListing($this->model->getTable()); |
174 | 174 | $fillable = $this->model->getFillable(); |
175 | 175 | |
176 | - if (! empty($fillable)) { |
|
176 | + if (!empty($fillable)) { |
|
177 | 177 | $columns = array_intersect($columns, $fillable); |
178 | 178 | } |
179 | 179 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | {{-- select_from_array column --}} |
2 | 2 | <td> |
3 | 3 | <?php |
4 | - if ($entry->{$column['name']} !== null) { |
|
5 | - echo $column['options'][$entry->{$column['name']}]; |
|
6 | - } else { |
|
7 | - echo "-"; |
|
8 | - } |
|
9 | - ?> |
|
4 | + if ($entry->{$column['name']} !== null) { |
|
5 | + echo $column['options'][$entry->{$column['name']}]; |
|
6 | + } else { |
|
7 | + echo "-"; |
|
8 | + } |
|
9 | + ?> |
|
10 | 10 | </td> |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * Move the most recently added column after the given target column. |
96 | 96 | * |
97 | - * @param string|array $targetColumn The target column name or array. |
|
97 | + * @param string $targetColumn The target column name or array. |
|
98 | 98 | */ |
99 | 99 | public function afterColumn($targetColumn) |
100 | 100 | { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Move the most recently added column before the given target column. |
106 | 106 | * |
107 | - * @param string|array $targetColumn The target column name or array. |
|
107 | + * @param string $targetColumn The target column name or array. |
|
108 | 108 | */ |
109 | 109 | public function beforeColumn($targetColumn) |
110 | 110 | { |
@@ -227,6 +227,7 @@ discard block |
||
227 | 227 | * |
228 | 228 | * @param [string] Column name. |
229 | 229 | * @param [attributes and values array] |
230 | + * @param string $column |
|
230 | 231 | */ |
231 | 232 | public function setColumnDetails($column, $attributes) |
232 | 233 | { |