We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('settings', function (Blueprint $table) { |
|
15 | + Schema::create('settings', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('key'); |
18 | 18 | $table->string('name'); |
@@ -51,9 +51,9 @@ 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 | - Route::group(['prefix' => 'admin', 'middleware' => ['web', 'admin']], function () { |
|
56 | + Route::group(['prefix' => 'admin', 'middleware' => ['web', 'admin']], function() { |
|
57 | 57 | // Settings |
58 | 58 | Route::resource('setting', 'SettingCrudController'); |
59 | 59 | }); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | private function registerSettings() |
80 | 80 | { |
81 | - $this->app->bind('settings', function ($app) { |
|
81 | + $this->app->bind('settings', function($app) { |
|
82 | 82 | return new Settings($app); |
83 | 83 | }); |
84 | 84 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $this->crud->hasAccessOrFail('update'); |
65 | 65 | |
66 | 66 | $this->data['entry'] = $this->crud->getEntry($id); |
67 | - $this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different |
|
67 | + $this->crud->addField((array)json_decode($this->data['entry']->field)); // <---- this is where it's different |
|
68 | 68 | $this->data['crud'] = $this->crud; |
69 | 69 | $this->data['fields'] = $this->crud->getUpdateFields($id); |
70 | 70 | $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name; |