We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | // if the label is missing, we should set it |
27 | - if (! isset($complete_field_array['label'])) { |
|
27 | + if (!isset($complete_field_array['label'])) { |
|
28 | 28 | $complete_field_array['label'] = ucfirst($complete_field_array['name']); |
29 | 29 | } |
30 | 30 | |
31 | 31 | // if the field type is missing, we should set it |
32 | - if (! isset($complete_field_array['type'])) { |
|
32 | + if (!isset($complete_field_array['type'])) { |
|
33 | 33 | $complete_field_array['type'] = $this->getFieldTypeFromDbColumnType($complete_field_array['name']); |
34 | 34 | } |
35 | 35 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public function removeFields($array_of_names, $form = 'both') |
93 | 93 | { |
94 | - if (! empty($array_of_names)) { |
|
94 | + if (!empty($array_of_names)) { |
|
95 | 95 | foreach ($array_of_names as $name) { |
96 | 96 | $this->removeField($name, $form); |
97 | 97 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | // Handle table field type mutation |
151 | 151 | if (isset($field['type']) && $field['type'] == 'table') { |
152 | - if (isset($data[$field['name']]) && is_string($field['name']) && ! empty($field['name'])) { |
|
152 | + if (isset($data[$field['name']]) && is_string($field['name']) && !empty($field['name'])) { |
|
153 | 153 | try { |
154 | 154 | $data[$field['name']] = json_decode($data[$field['name']]); |
155 | 155 | } catch (Exception $e) { |
@@ -3,18 +3,16 @@ |
||
3 | 3 | namespace Backpack\CRUD\app\Http\Controllers; |
4 | 4 | |
5 | 5 | use Backpack\CRUD\CrudPanel; |
6 | -use Illuminate\Http\Request; |
|
7 | -use Illuminate\Support\Facades\Form as Form; |
|
6 | +use Backpack\CRUD\app\Http\Controllers\CrudFeatures\AjaxTable; |
|
7 | +use Backpack\CRUD\app\Http\Controllers\CrudFeatures\Reorder; |
|
8 | 8 | use Illuminate\Foundation\Bus\DispatchesJobs; |
9 | -use Illuminate\Routing\Controller as BaseController; |
|
10 | 9 | use Illuminate\Foundation\Validation\ValidatesRequests; |
11 | -use Backpack\CRUD\app\Http\Controllers\CrudFeatures\Reorder; |
|
12 | -use Backpack\CRUD\app\Http\Controllers\CrudFeatures\AjaxTable; |
|
10 | +use Illuminate\Http\Request; |
|
11 | +use Illuminate\Routing\Controller as BaseController; |
|
13 | 12 | // CRUD Traits for non-core features |
14 | 13 | use Backpack\CRUD\app\Http\Controllers\CrudFeatures\Revisions; |
15 | -use Backpack\CRUD\app\Http\Requests\CrudRequest as StoreRequest; |
|
16 | -use Backpack\CRUD\app\Http\Requests\CrudRequest as UpdateRequest; |
|
17 | 14 | use Backpack\CRUD\app\Http\Controllers\CrudFeatures\ShowDetailsRow; |
15 | +use Backpack\CRUD\app\Http\Requests\CrudRequest as UpdateRequest; |
|
18 | 16 | |
19 | 17 | class CrudController extends BaseController |
20 | 18 | { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Backpack\CRUD; |
4 | 4 | |
5 | 5 | use DB; |
6 | -use Illuminate\Support\Facades\Config; |
|
7 | 6 | use Illuminate\Database\Eloquent\Model; |
7 | +use Illuminate\Support\Facades\Config; |
|
8 | 8 | |
9 | 9 | trait CrudTrait |
10 | 10 | { |
@@ -2,21 +2,21 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD; |
4 | 4 | |
5 | -use Backpack\CRUD\PanelTraits\Read; |
|
6 | -use Backpack\CRUD\PanelTraits\Query; |
|
7 | 5 | use Backpack\CRUD\PanelTraits\Access; |
8 | -use Backpack\CRUD\PanelTraits\Create; |
|
9 | -use Backpack\CRUD\PanelTraits\Delete; |
|
10 | -use Backpack\CRUD\PanelTraits\Fields; |
|
11 | -use Backpack\CRUD\PanelTraits\Update; |
|
6 | +use Backpack\CRUD\PanelTraits\AutoFocus; |
|
12 | 7 | use Backpack\CRUD\PanelTraits\AutoSet; |
13 | 8 | use Backpack\CRUD\PanelTraits\Buttons; |
14 | 9 | use Backpack\CRUD\PanelTraits\Columns; |
10 | +use Backpack\CRUD\PanelTraits\Create; |
|
11 | +use Backpack\CRUD\PanelTraits\Delete; |
|
12 | +use Backpack\CRUD\PanelTraits\FakeColumns; |
|
13 | +use Backpack\CRUD\PanelTraits\FakeFields; |
|
14 | +use Backpack\CRUD\PanelTraits\Fields; |
|
15 | 15 | use Backpack\CRUD\PanelTraits\Filters; |
16 | +use Backpack\CRUD\PanelTraits\Query; |
|
17 | +use Backpack\CRUD\PanelTraits\Read; |
|
16 | 18 | use Backpack\CRUD\PanelTraits\Reorder; |
17 | -use Backpack\CRUD\PanelTraits\AutoFocus; |
|
18 | -use Backpack\CRUD\PanelTraits\FakeFields; |
|
19 | -use Backpack\CRUD\PanelTraits\FakeColumns; |
|
19 | +use Backpack\CRUD\PanelTraits\Update; |
|
20 | 20 | use Backpack\CRUD\PanelTraits\ViewsAndRestoresRevisions; |
21 | 21 | |
22 | 22 | class CrudPanel |