We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function getEntry($id) |
21 | 21 | { |
22 | - if (! $this->entry) { |
|
22 | + if (!$this->entry) { |
|
23 | 23 | $this->entry = $this->model->findOrFail($id); |
24 | 24 | $this->entry = $this->entry->withFakes(); |
25 | 25 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | public function hasUploadFields($form, $id = false) |
95 | 95 | { |
96 | 96 | $fields = $this->getFields($form, $id); |
97 | - $upload_fields = array_where($fields, function ($value, $key) { |
|
97 | + $upload_fields = array_where($fields, function($value, $key) { |
|
98 | 98 | return isset($value['upload']) && $value['upload'] == true; |
99 | 99 | }); |
100 | 100 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function getCellView($column, $entry) |
194 | 194 | { |
195 | - if (! isset($column['type'])) { |
|
195 | + if (!isset($column['type'])) { |
|
196 | 196 | return \View::make('crud::columns.text')->with('crud', $this)->with('column', $column)->with('entry', $entry)->render(); |
197 | 197 | } else { |
198 | 198 | if (view()->exists('vendor.backpack.crud.columns.'.$column['type'])) { |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | // create an array with the names of the searchable columns |
16 | 16 | $columns = collect($this->crud->columns) |
17 | - ->reject(function ($column, $key) { |
|
17 | + ->reject(function($column, $key) { |
|
18 | 18 | // the select_multiple, model_function and model_function_attribute columns are not searchable |
19 | 19 | return isset($column['type']) && ($column['type'] == 'select_multiple' || $column['type'] == 'model_function' || $column['type'] == 'model_function_attribute'); |
20 | 20 | }) |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $dataTable = new \LiveControl\EloquentDataTable\DataTable($this->crud->query, $columns); |
28 | 28 | |
29 | 29 | // make the datatable use the column types instead of just echoing the text |
30 | - $dataTable->setFormatRowFunction(function ($entry) { |
|
30 | + $dataTable->setFormatRowFunction(function($entry) { |
|
31 | 31 | // get the actual HTML for each row's cell |
32 | 32 | $row_items = $this->crud->getRowViews($entry, $this->crud); |
33 | 33 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | { |
17 | 17 | $this->getDbColumnTypes(); |
18 | 18 | |
19 | - array_map(function ($field) { |
|
19 | + array_map(function($field) { |
|
20 | 20 | // $this->labels[$field] = $this->makeLabel($field); |
21 | 21 | |
22 | 22 | $new_field = [ |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $this->create_fields[$field] = $new_field; |
31 | 31 | $this->update_fields[$field] = $new_field; |
32 | 32 | |
33 | - if (! in_array($field, $this->model->getHidden())) { |
|
33 | + if (!in_array($field, $this->model->getHidden())) { |
|
34 | 34 | $this->columns[] = [ |
35 | 35 | 'name' => $field, |
36 | 36 | 'label' => ucfirst($field), |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function getFieldTypeFromDbColumnType($field) |
69 | 69 | { |
70 | - if (! array_key_exists($field, $this->db_column_types)) { |
|
70 | + if (!array_key_exists($field, $this->db_column_types)) { |
|
71 | 71 | return 'text'; |
72 | 72 | } |
73 | 73 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $columns = $this->model->getConnection()->getSchemaBuilder()->getColumnListing($this->model->getTable()); |
149 | 149 | $fillable = $this->model->getFillable(); |
150 | 150 | |
151 | - if (! empty($fillable)) { |
|
151 | + if (!empty($fillable)) { |
|
152 | 152 | $columns = array_intersect($columns, $fillable); |
153 | 153 | } |
154 | 154 |