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
Pull Request — master (#19)
by Owen
02:03
created
src/SettingsServiceProvider.php 2 patches
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -11,78 +11,78 @@
 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
-        if (! \App::runningInConsole()) {
29
-            // only use the Settings package if the Settings table is present in the database
30
-            if (count(Schema::getColumnListing('settings'))) {
31
-                // get all settings from the database
32
-                $settings = Setting::all();
21
+	/**
22
+	 * Perform post-registration booting of services.
23
+	 *
24
+	 * @return void
25
+	 */
26
+	public function boot()
27
+	{
28
+		if (! \App::runningInConsole()) {
29
+			// only use the Settings package if the Settings table is present in the database
30
+			if (count(Schema::getColumnListing('settings'))) {
31
+				// get all settings from the database
32
+				$settings = Setting::all();
33 33
 
34
-                // bind all settings to the Laravel config, so you can call them like
35
-                // Config::get('settings.contact_email')
36
-                foreach ($settings as $key => $setting) {
37
-                    Config::set('settings.'.$setting->key, $setting->value);
38
-                }
39
-            }
34
+				// bind all settings to the Laravel config, so you can call them like
35
+				// Config::get('settings.contact_email')
36
+				foreach ($settings as $key => $setting) {
37
+					Config::set('settings.'.$setting->key, $setting->value);
38
+				}
39
+			}
40 40
 
41
-            // publish the migrations and seeds
42
-            $this->publishes([__DIR__.'/database/migrations/' => database_path('migrations')], 'migrations');
43
-            $this->publishes([__DIR__.'/database/seeds/' => database_path('seeds')], 'seeds');
44
-        }
45
-    }
41
+			// publish the migrations and seeds
42
+			$this->publishes([__DIR__.'/database/migrations/' => database_path('migrations')], 'migrations');
43
+			$this->publishes([__DIR__.'/database/seeds/' => database_path('seeds')], 'seeds');
44
+		}
45
+	}
46 46
 
47
-    /**
48
-     * Define the routes for the application.
49
-     *
50
-     * @param \Illuminate\Routing\Router $router
51
-     *
52
-     * @return void
53
-     */
54
-    public function setupRoutes(Router $router)
55
-    {
56
-        $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function ($router) {
57
-            // Admin Interface Routes
58
-            Route::group(['prefix'   => config('backpack.base.route_prefix', 'admin'),
59
-                        'middleware' => ['web', 'admin'], ], function () {
60
-                            // Settings
61
-                            Route::resource('setting', 'SettingCrudController');
62
-                        });
63
-        });
64
-    }
47
+	/**
48
+	 * Define the routes for the application.
49
+	 *
50
+	 * @param \Illuminate\Routing\Router $router
51
+	 *
52
+	 * @return void
53
+	 */
54
+	public function setupRoutes(Router $router)
55
+	{
56
+		$router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function ($router) {
57
+			// Admin Interface Routes
58
+			Route::group(['prefix'   => config('backpack.base.route_prefix', 'admin'),
59
+						'middleware' => ['web', 'admin'], ], function () {
60
+							// Settings
61
+							Route::resource('setting', 'SettingCrudController');
62
+						});
63
+		});
64
+	}
65 65
 
66
-    /**
67
-     * Register any package services.
68
-     *
69
-     * @return void
70
-     */
71
-    public function register()
72
-    {
73
-        $this->registerSettings();
74
-        $this->setupRoutes($this->app->router);
66
+	/**
67
+	 * Register any package services.
68
+	 *
69
+	 * @return void
70
+	 */
71
+	public function register()
72
+	{
73
+		$this->registerSettings();
74
+		$this->setupRoutes($this->app->router);
75 75
 
76
-        // use this if your package has a config file
77
-        // config([
78
-        //         'config/Settings.php',
79
-        // ]);
80
-    }
76
+		// use this if your package has a config file
77
+		// config([
78
+		//         'config/Settings.php',
79
+		// ]);
80
+	}
81 81
 
82
-    private function registerSettings()
83
-    {
84
-        $this->app->bind('settings', function ($app) {
85
-            return new Settings($app);
86
-        });
87
-    }
82
+	private function registerSettings()
83
+	{
84
+		$this->app->bind('settings', function ($app) {
85
+			return new Settings($app);
86
+		});
87
+	}
88 88
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function boot()
27 27
     {
28
-        if (! \App::runningInConsole()) {
28
+        if (!\App::runningInConsole()) {
29 29
             // only use the Settings package if the Settings table is present in the database
30 30
             if (count(Schema::getColumnListing('settings'))) {
31 31
                 // get all settings from the database
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function setupRoutes(Router $router)
55 55
     {
56
-        $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function ($router) {
56
+        $router->group(['namespace' => 'Backpack\Settings\app\Http\Controllers'], function($router) {
57 57
             // Admin Interface Routes
58 58
             Route::group(['prefix'   => config('backpack.base.route_prefix', 'admin'),
59
-                        'middleware' => ['web', 'admin'], ], function () {
59
+                        'middleware' => ['web', 'admin'], ], function() {
60 60
                             // Settings
61 61
                             Route::resource('setting', 'SettingCrudController');
62 62
                         });
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     private function registerSettings()
83 83
     {
84
-        $this->app->bind('settings', function ($app) {
84
+        $this->app->bind('settings', function($app) {
85 85
             return new Settings($app);
86 86
         });
87 87
     }
Please login to merge, or discard this patch.