We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,12 +1,8 @@ |
||
1 | 1 | <?php namespace Backpack\Settings\app\Http\Controllers; |
2 | 2 | |
3 | -use Illuminate\Http\Request; |
|
4 | -use App\Http\Requests; |
|
5 | -use App\Http\Controllers\Controller; |
|
6 | 3 | use Backpack\CRUD\app\Http\Controllers\CrudController; |
7 | 4 | |
8 | 5 | // VALIDATION |
9 | -use Backpack\Settings\app\Http\Requests\SettingRequest as StoreRequest; |
|
10 | 6 | use Backpack\Settings\app\Http\Requests\SettingRequest as UpdateRequest; |
11 | 7 | |
12 | 8 | class SettingCrudController extends CrudController { |
@@ -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'); |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | // publish the migrations and seeds |
39 | - $this->publishes([ __DIR__.'/database/migrations/' => database_path('migrations') ], 'migrations'); |
|
40 | - $this->publishes([ __DIR__.'/database/seeds/' => database_path('seeds') ], 'seeds'); |
|
39 | + $this->publishes([__DIR__.'/database/migrations/' => database_path('migrations')], 'migrations'); |
|
40 | + $this->publishes([__DIR__.'/database/seeds/' => database_path('seeds')], 'seeds'); |
|
41 | 41 | } |
42 | 42 | /** |
43 | 43 | * Define the routes for the application. |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | private function registerSettings() |
71 | 71 | { |
72 | - $this->app->bind('settings',function($app){ |
|
72 | + $this->app->bind('settings', function($app) { |
|
73 | 73 | return new Settings($app); |
74 | 74 | }); |
75 | 75 | } |
@@ -1,11 +1,10 @@ |
||
1 | 1 | <?php namespace Backpack\Settings; |
2 | 2 | |
3 | -use Illuminate\Routing\Router; |
|
4 | -use Illuminate\Support\ServiceProvider; |
|
5 | -use Illuminate\Support\Facades\DB; |
|
6 | -use Illuminate\Database\Eloquent\Model as Eloquent; |
|
7 | 3 | use Backpack\Settings\app\Models\Setting as Setting; |
8 | 4 | use Config; |
5 | +use Illuminate\Routing\Router; |
|
6 | +use Illuminate\Support\Facades\DB; |
|
7 | +use Illuminate\Support\ServiceProvider; |
|
9 | 8 | |
10 | 9 | class SettingsServiceProvider extends ServiceProvider |
11 | 10 | { |