We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -23,8 +23,7 @@ |
||
23 | 23 | |
24 | 24 | try { |
25 | 25 | $select = app()->version() < 10 ? |
26 | - DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"') : |
|
27 | - DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"')->getValue($connection->getQueryGrammar()); |
|
26 | + DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"') : DB::raw('SHOW COLUMNS FROM `'.$table_prefix.$instance->getTable().'` WHERE Field = "'.$field_name.'"')->getValue($connection->getQueryGrammar()); |
|
28 | 27 | |
29 | 28 | $type = $connection->select($select)[0]->Type; |
30 | 29 | } catch (\Exception $e) { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | <?php |
29 | 29 | function tree_element($entry, $key, $all_entries, $crud) |
30 | 30 | { |
31 | - if (! isset($entry->tree_element_shown)) { |
|
31 | + if (!isset($entry->tree_element_shown)) { |
|
32 | 32 | // mark the element as shown |
33 | 33 | $all_entries[$key]->tree_element_shown = true; |
34 | 34 | $entry->tree_element_shown = true; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | <ol class="sortable mt-0"> |
72 | 72 | <?php |
73 | 73 | $all_entries = collect($entries->all())->sortBy('lft')->keyBy($crud->getModel()->getKeyName()); |
74 | - $root_entries = $all_entries->filter(function ($item) { |
|
74 | + $root_entries = $all_entries->filter(function($item) { |
|
75 | 75 | return $item->parent_id == 0; |
76 | 76 | }); |
77 | 77 | foreach ($root_entries as $key => $entry) { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | // we get the first column from database |
64 | 64 | // that is NOT indexed (usually primary, foreign keys) |
65 | 65 | foreach ($columns as $columnName => $columnProperties) { |
66 | - if (! in_array($columnName, $indexedColumns)) { |
|
66 | + if (!in_array($columnName, $indexedColumns)) { |
|
67 | 67 | //check for convention "field<_id>" in case developer didn't add foreign key constraints. |
68 | 68 | if (strpos($columnName, '_id') !== false) { |
69 | 69 | continue; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | 'middleware' => config('backpack.base.web_middleware', 'web'), |
19 | 19 | 'prefix' => config('backpack.base.route_prefix'), |
20 | 20 | ], |
21 | - function () { |
|
21 | + function() { |
|
22 | 22 | // if not otherwise configured, setup the auth routes |
23 | 23 | if (config('backpack.base.setup_auth_routes')) { |
24 | 24 | // Authentication Routes... |