We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | public function tabsDisabled() |
31 | 31 | { |
32 | - return ! $this->tabsEnabled; |
|
32 | + return !$this->tabsEnabled; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function setTabsType($type) |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | { |
92 | 92 | $all_fields = $this->getCurrentFields(); |
93 | 93 | |
94 | - $fields_without_a_tab = collect($all_fields)->filter(function ($value, $key) { |
|
95 | - return ! isset($value['tab']); |
|
94 | + $fields_without_a_tab = collect($all_fields)->filter(function($value, $key) { |
|
95 | + return !isset($value['tab']); |
|
96 | 96 | }); |
97 | 97 | |
98 | 98 | return $fields_without_a_tab; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if ($this->tabExists($label)) { |
104 | 104 | $all_fields = $this->getCurrentFields(); |
105 | 105 | |
106 | - $fields_for_current_tab = collect($all_fields)->filter(function ($value, $key) use ($label) { |
|
106 | + $fields_for_current_tab = collect($all_fields)->filter(function($value, $key) use ($label) { |
|
107 | 107 | return isset($value['tab']) && $value['tab'] == $label; |
108 | 108 | }); |
109 | 109 | |
@@ -119,11 +119,11 @@ discard block |
||
119 | 119 | $fields = $this->getCurrentFields(); |
120 | 120 | |
121 | 121 | $fields_with_tabs = collect($fields) |
122 | - ->filter(function ($value, $key) { |
|
122 | + ->filter(function($value, $key) { |
|
123 | 123 | return isset($value['tab']); |
124 | 124 | }) |
125 | - ->each(function ($value, $key) use (&$tabs) { |
|
126 | - if (! in_array($value['tab'], $tabs)) { |
|
125 | + ->each(function($value, $key) use (&$tabs) { |
|
126 | + if (!in_array($value['tab'], $tabs)) { |
|
127 | 127 | $tabs[] = $value['tab']; |
128 | 128 | } |
129 | 129 | }); |
@@ -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 |