Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 399abc...82d3af )
by Cristian
11s
created
src/SettingsServiceProvider.php 2 patches
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -11,76 +11,76 @@
 block discarded – undo
11 11
 
12 12
 class SettingsServiceProvider extends ServiceProvider
13 13
 {
14
-    /**
15
-     * Indicates if loading of the provider is deferred.
16
-     *
17
-     * @var bool
18
-     */
19
-    protected $defer = false;
14
+	/**
15
+	 * Indicates if loading of the provider is deferred.
16
+	 *
17
+	 * @var bool
18
+	 */
19
+	protected $defer = false;
20 20
 
21
-    /**
22
-     * Perform post-registration booting of services.
23
-     *
24
-     * @return void
25
-     */
26
-    public function boot()
27
-    {
28
-        // only use the Settings package if the Settings table is present in the database
29
-        if (count(Schema::getColumnListing('settings'))) {
30
-            // get all settings from the database
31
-            $settings = Setting::all();
21
+	/**
22
+	 * Perform post-registration booting of services.
23
+	 *
24
+	 * @return void
25
+	 */
26
+	public function boot()
27
+	{
28
+		// only use the Settings package if the Settings table is present in the database
29
+		if (count(Schema::getColumnListing('settings'))) {
30
+			// get all settings from the database
31
+			$settings = Setting::all();
32 32
 
33
-            // bind all settings to the Laravel config, so you can call them like
34
-            // Config::get('settings.contact_email')
35
-            foreach ($settings as $key => $setting) {
36
-                Config::set('settings.'.$setting->key, $setting->value);
37
-            }
38
-        }
33
+			// bind all settings to the Laravel config, so you can call them like
34
+			// Config::get('settings.contact_email')
35
+			foreach ($settings as $key => $setting) {
36
+				Config::set('settings.'.$setting->key, $setting->value);
37
+			}
38
+		}
39 39
 
40
-        // publish the migrations and seeds
41
-        $this->publishes([__DIR__.'/database/migrations/' => database_path('migrations')], 'migrations');
42
-        $this->publishes([__DIR__.'/database/seeds/' => database_path('seeds')], 'seeds');
43
-    }
40
+		// publish the migrations and seeds
41
+		$this->publishes([__DIR__.'/database/migrations/' => database_path('migrations')], 'migrations');
42
+		$this->publishes([__DIR__.'/database/seeds/' => database_path('seeds')], 'seeds');
43
+	}
44 44
 
45
-    /**
46
-     * Define the routes for the application.
47
-     *
48
-     * @param \Illuminate\Routing\Router $router
49
-     *
50
-     * @return void
51
-     */
52
-    public function setupRoutes(Router $router)
53
-    {
54
-        $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function ($router) {
55
-            // Admin Interface Routes
56
-            Route::group(['prefix' => config('backpack.base.route_prefix', 'admin'),
57
-                        'middleware' => ['web', 'admin']], function () {
58
-                            // Settings
59
-                            Route::resource('setting', 'SettingCrudController');
60
-                        });
61
-        });
62
-    }
45
+	/**
46
+	 * Define the routes for the application.
47
+	 *
48
+	 * @param \Illuminate\Routing\Router $router
49
+	 *
50
+	 * @return void
51
+	 */
52
+	public function setupRoutes(Router $router)
53
+	{
54
+		$router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function ($router) {
55
+			// Admin Interface Routes
56
+			Route::group(['prefix' => config('backpack.base.route_prefix', 'admin'),
57
+						'middleware' => ['web', 'admin']], function () {
58
+							// Settings
59
+							Route::resource('setting', 'SettingCrudController');
60
+						});
61
+		});
62
+	}
63 63
 
64
-    /**
65
-     * Register any package services.
66
-     *
67
-     * @return void
68
-     */
69
-    public function register()
70
-    {
71
-        $this->registerSettings();
72
-        $this->setupRoutes($this->app->router);
64
+	/**
65
+	 * Register any package services.
66
+	 *
67
+	 * @return void
68
+	 */
69
+	public function register()
70
+	{
71
+		$this->registerSettings();
72
+		$this->setupRoutes($this->app->router);
73 73
 
74
-        // use this if your package has a config file
75
-        // config([
76
-        //         'config/Settings.php',
77
-        // ]);
78
-    }
74
+		// use this if your package has a config file
75
+		// config([
76
+		//         'config/Settings.php',
77
+		// ]);
78
+	}
79 79
 
80
-    private function registerSettings()
81
-    {
82
-        $this->app->bind('settings', function ($app) {
83
-            return new Settings($app);
84
-        });
85
-    }
80
+	private function registerSettings()
81
+	{
82
+		$this->app->bind('settings', function ($app) {
83
+			return new Settings($app);
84
+		});
85
+	}
86 86
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/SettingCrudController.php 2 patches
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -9,76 +9,76 @@
 block discarded – undo
9 9
 
10 10
 class SettingCrudController extends CrudController
11 11
 {
12
-    public function __construct()
13
-    {
14
-        parent::__construct();
12
+	public function __construct()
13
+	{
14
+		parent::__construct();
15 15
 
16
-        $this->crud->setModel("Backpack\Settings\app\Models\Setting");
17
-        $this->crud->setEntityNameStrings('setting', 'settings');
18
-        $this->crud->setRoute(config('backpack.base.route_prefix', 'admin') . '/setting');
19
-        $this->crud->denyAccess(['create', 'delete']);
20
-        $this->crud->setColumns(['name', 'value', 'description']);
21
-        $this->crud->addField([
22
-                                'name'       => 'name',
23
-                                'label'      => 'Name',
24
-                                'type'       => 'text',
25
-                                'attributes' => [
26
-                                    'disabled' => 'disabled',
27
-                                    ],
28
-                            ]);
29
-    }
16
+		$this->crud->setModel("Backpack\Settings\app\Models\Setting");
17
+		$this->crud->setEntityNameStrings('setting', 'settings');
18
+		$this->crud->setRoute(config('backpack.base.route_prefix', 'admin') . '/setting');
19
+		$this->crud->denyAccess(['create', 'delete']);
20
+		$this->crud->setColumns(['name', 'value', 'description']);
21
+		$this->crud->addField([
22
+								'name'       => 'name',
23
+								'label'      => 'Name',
24
+								'type'       => 'text',
25
+								'attributes' => [
26
+									'disabled' => 'disabled',
27
+									],
28
+							]);
29
+	}
30 30
 
31
-    /**
32
-     * Display all rows in the database for this entity.
33
-     * This overwrites the default CrudController behaviour:
34
-     * - instead of showing all entries, only show the "active" ones.
35
-     *
36
-     * @return Response
37
-     */
38
-    public function index()
39
-    {
40
-        // if view_table_permission is false, abort
41
-        $this->crud->hasAccessOrFail('list');
42
-        $this->crud->addClause('where', 'active', 1); // <---- this is where it's different from CrudController::index()
31
+	/**
32
+	 * Display all rows in the database for this entity.
33
+	 * This overwrites the default CrudController behaviour:
34
+	 * - instead of showing all entries, only show the "active" ones.
35
+	 *
36
+	 * @return Response
37
+	 */
38
+	public function index()
39
+	{
40
+		// if view_table_permission is false, abort
41
+		$this->crud->hasAccessOrFail('list');
42
+		$this->crud->addClause('where', 'active', 1); // <---- this is where it's different from CrudController::index()
43 43
 
44
-        $this->data['entries'] = $this->crud->getEntries();
45
-        $this->data['crud'] = $this->crud;
46
-        $this->data['title'] = ucfirst($this->crud->entity_name_plural);
44
+		$this->data['entries'] = $this->crud->getEntries();
45
+		$this->data['crud'] = $this->crud;
46
+		$this->data['title'] = ucfirst($this->crud->entity_name_plural);
47 47
 
48
-        // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
49
-        return view('crud::list', $this->data);
50
-    }
48
+		// load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
49
+		return view('crud::list', $this->data);
50
+	}
51 51
 
52
-    public function store(StoreRequest $request)
53
-    {
54
-        return parent::storeCrud();
55
-    }
52
+	public function store(StoreRequest $request)
53
+	{
54
+		return parent::storeCrud();
55
+	}
56 56
 
57
-    /**
58
-     * Show the form for editing the specified resource.
59
-     *
60
-     * @param int $id
61
-     *
62
-     * @return Response
63
-     */
64
-    public function edit($id)
65
-    {
66
-        $this->crud->hasAccessOrFail('update');
57
+	/**
58
+	 * Show the form for editing the specified resource.
59
+	 *
60
+	 * @param int $id
61
+	 *
62
+	 * @return Response
63
+	 */
64
+	public function edit($id)
65
+	{
66
+		$this->crud->hasAccessOrFail('update');
67 67
 
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
70
-        $this->data['crud'] = $this->crud;
71
-        $this->data['fields'] = $this->crud->getUpdateFields($id);
72
-        $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name;
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
70
+		$this->data['crud'] = $this->crud;
71
+		$this->data['fields'] = $this->crud->getUpdateFields($id);
72
+		$this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name;
73 73
 
74
-        $this->data['id'] = $id;
74
+		$this->data['id'] = $id;
75 75
 
76
-        // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
77
-        return view('crud::edit', $this->data);
78
-    }
76
+		// load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
77
+		return view('crud::edit', $this->data);
78
+	}
79 79
 
80
-    public function update(UpdateRequest $request)
81
-    {
82
-        return parent::updateCrud();
83
-    }
80
+	public function update(UpdateRequest $request)
81
+	{
82
+		return parent::updateCrud();
83
+	}
84 84
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.