We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function setupRoutes(Router $router) |
53 | 53 | { |
54 | - $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function ($router) { |
|
54 | + $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function($router) { |
|
55 | 55 | // Admin Interface Routes |
56 | 56 | Route::group(['prefix' => config('backpack.base.route_prefix', 'admin'), |
57 | - 'middleware' => ['web', 'admin']], function () { |
|
57 | + 'middleware' => ['web', 'admin']], function() { |
|
58 | 58 | // Settings |
59 | 59 | Route::resource('setting', 'SettingCrudController'); |
60 | 60 | }); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | private function registerSettings() |
81 | 81 | { |
82 | - $this->app->bind('settings', function ($app) { |
|
82 | + $this->app->bind('settings', function($app) { |
|
83 | 83 | return new Settings($app); |
84 | 84 | }); |
85 | 85 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | $this->crud->setModel("Backpack\Settings\app\Models\Setting"); |
17 | 17 | $this->crud->setEntityNameStrings('setting', 'settings'); |
18 | - $this->crud->setRoute(config('backpack.base.route_prefix', 'admin') . '/setting'); |
|
18 | + $this->crud->setRoute(config('backpack.base.route_prefix', 'admin').'/setting'); |
|
19 | 19 | $this->crud->denyAccess(['create', 'delete']); |
20 | 20 | $this->crud->setColumns(['name', 'value', 'description']); |
21 | 21 | $this->crud->addField([ |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $this->crud->hasAccessOrFail('update'); |
67 | 67 | |
68 | 68 | $this->data['entry'] = $this->crud->getEntry($id); |
69 | - $this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different |
|
69 | + $this->crud->addField((array)json_decode($this->data['entry']->field)); // <---- this is where it's different |
|
70 | 70 | $this->data['crud'] = $this->crud; |
71 | 71 | $this->data['fields'] = $this->crud->getUpdateFields($id); |
72 | 72 | $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name; |