We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -174,7 +174,7 @@ |
||
174 | 174 | { |
175 | 175 | $this->crud->hasAccessOrFail('reorder'); |
176 | 176 | |
177 | - if (! $this->crud->isReorderEnabled()) { |
|
177 | + if (!$this->crud->isReorderEnabled()) { |
|
178 | 178 | abort(403, 'Reorder is disabled.'); |
179 | 179 | } |
180 | 180 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | // crate 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 columns are not searchable |
19 | 19 | return isset($column['type']) && $column['type'] == 'select_multiple'; |
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 |
@@ -10,7 +10,7 @@ |
||
10 | 10 | if (is_array($array) && count($array)) { |
11 | 11 | $list = []; |
12 | 12 | foreach ($array as $item) { |
13 | - if( isset( $item->{$column['visible_key']} ) ) { |
|
13 | + if (isset($item->{$column['visible_key']} )) { |
|
14 | 14 | $list[] = $item->{$column['visible_key']}; |
15 | 15 | } elseif (is_array($item) && isset($item[$column['visible_key']])) { |
16 | 16 | $list[] = $item[$column['visible_key']]; |
@@ -3,13 +3,13 @@ |
||
3 | 3 | <?php |
4 | 4 | $max = isset($field['max']) ? $field['max'] : -1; |
5 | 5 | $min = isset($field['min']) ? $field['min'] : -1; |
6 | - $item_name = strtolower( isset($field['entity_singular']) && !empty($field['entity_singular']) ? $field['entity_singular'] : $field['label']); |
|
6 | + $item_name = strtolower(isset($field['entity_singular']) && !empty($field['entity_singular']) ? $field['entity_singular'] : $field['label']); |
|
7 | 7 | |
8 | - $items = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : '' )); |
|
8 | + $items = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : '')); |
|
9 | 9 | |
10 | 10 | // make sure not matter the attribute casting |
11 | 11 | // the $items variable contains a properly defined JSON |
12 | - if(is_array($items)) { |
|
12 | + if (is_array($items)) { |
|
13 | 13 | if (count($items)) { |
14 | 14 | $items = json_encode($items); |
15 | 15 | } |
@@ -109,16 +109,4 @@ |
||
109 | 109 | 'external_link' => 'External link', |
110 | 110 | 'choose_file' => 'Choose file', |
111 | 111 | |
112 | -<<<<<<< HEAD |
|
113 | - //Unique Fields |
|
114 | - 'unique_error' => 'Sorry something went wrong, please check your configuration and try again', |
|
115 | - 'unique_field_name_missing' => 'field_name is missing from unicity check', |
|
116 | - 'unique_check_value_missing' => 'check_value is missing from unicity check', |
|
117 | - 'unique_exists' => 'already exists', |
|
118 | -======= |
|
119 | - //Table field |
|
120 | - 'table_cant_add' => 'Cannot add new :entity', |
|
121 | - 'table_max_reached' => 'Maximum number of :max reached', |
|
122 | - |
|
123 | ->>>>>>> master |
|
124 | -]; |
|
112 | +<< << <<< HEAD |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | // call the setup function inside this closure to also have the request there |
31 | 31 | // this way, developers can use things stored in session (auth variables, etc) |
32 | - $this->middleware(function ($request, $next) { |
|
32 | + $this->middleware(function($request, $next) { |
|
33 | 33 | $this->setup(); |
34 | 34 | |
35 | 35 | return $next($request); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $this->data['title'] = ucfirst($this->crud->entity_name_plural); |
57 | 57 | |
58 | 58 | // get all entries if AJAX is not enabled |
59 | - if (! $this->data['crud']->ajaxTable()) { |
|
59 | + if (!$this->data['crud']->ajaxTable()) { |
|
60 | 60 | $this->data['entries'] = $this->data['crud']->getEntries(); |
61 | 61 | } |
62 | 62 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | |
212 | 212 | return $this->crud->delete($id); |
213 | 213 | } |
214 | -<<<<<<< HEAD |
|
214 | +<< << <<< HEAD |
|
215 | 215 | |
216 | 216 | /** |
217 | 217 | * Reorder the items in the database using the Nested Set pattern. |
@@ -353,8 +353,4 @@ discard block |
||
353 | 353 | } |
354 | 354 | } |
355 | 355 | |
356 | - return $response; |
|
357 | - } |
|
358 | -======= |
|
359 | ->>>>>>> master |
|
360 | -} |
|
356 | + return $response |
|
361 | 357 | \ No newline at end of file |