@@ -62,17 +62,17 @@ discard block  | 
                                                    ||
| 62 | 62 | (new $addonServiceProvider($this->app))->boot();  | 
                                                        
| 63 | 63 | }  | 
                                                        
| 64 | 64 | |
| 65 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'chief');  | 
                                                        |
| 66 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');  | 
                                                        |
| 67 | - $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'chief');  | 
                                                        |
| 65 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'chief');  | 
                                                        |
| 66 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');  | 
                                                        |
| 67 | + $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'chief');  | 
                                                        |
| 68 | 68 | |
| 69 | 69 | $this->publishes([  | 
                                                        
| 70 | -            __DIR__ . '/../../config/chief.php' => config_path('chief.php'), | 
                                                        |
| 71 | -            __DIR__ . '/../../config/chief-settings.php' => config_path('chief-settings.php'), | 
                                                        |
| 70 | +            __DIR__.'/../../config/chief.php' => config_path('chief.php'), | 
                                                        |
| 71 | +            __DIR__.'/../../config/chief-settings.php' => config_path('chief-settings.php'), | 
                                                        |
| 72 | 72 | ], 'chief-config');  | 
                                                        
| 73 | 73 | |
| 74 | 74 | $this->publishes([  | 
                                                        
| 75 | -            __DIR__ . '/../../public/chief-assets' => public_path('/chief-assets'), | 
                                                        |
| 75 | +            __DIR__.'/../../public/chief-assets' => public_path('/chief-assets'), | 
                                                        |
| 76 | 76 | ], 'chief-assets');  | 
                                                        
| 77 | 77 | |
| 78 | 78 | // Commands for both cli and web scripts  | 
                                                        
@@ -124,37 +124,37 @@ discard block  | 
                                                    ||
| 124 | 124 | public function register()  | 
                                                        
| 125 | 125 |      { | 
                                                        
| 126 | 126 |          if ($this->app->runningInConsole()) { | 
                                                        
| 127 | -            $this->callAfterResolving(Schedule::class, function (Schedule $schedule) { | 
                                                        |
| 127 | +            $this->callAfterResolving(Schedule::class, function(Schedule $schedule) { | 
                                                        |
| 128 | 128 |                  $schedule->command('chief:sitemap')->dailyAt("01:00"); | 
                                                        
| 129 | 129 | });  | 
                                                        
| 130 | 130 | }  | 
                                                        
| 131 | 131 | |
| 132 | - $this->mergeConfigFrom(__DIR__ . '/../../config/chief.php', 'chief');  | 
                                                        |
| 133 | - $this->mergeConfigFrom(__DIR__ . '/../../config/chief-settings.php', 'chief-settings');  | 
                                                        |
| 132 | + $this->mergeConfigFrom(__DIR__.'/../../config/chief.php', 'chief');  | 
                                                        |
| 133 | + $this->mergeConfigFrom(__DIR__.'/../../config/chief-settings.php', 'chief-settings');  | 
                                                        |
| 134 | 134 | |
| 135 | 135 | $this->setupEnvironmentProviders();  | 
                                                        
| 136 | 136 | |
| 137 | 137 | $this->app->when(SettingsController::class)  | 
                                                        
| 138 | 138 | ->needs(SettingFields::class)  | 
                                                        
| 139 | -            ->give(function () { | 
                                                        |
| 139 | +            ->give(function() { | 
                                                        |
| 140 | 140 | return new SettingFields(new Settings());  | 
                                                        
| 141 | 141 | });  | 
                                                        
| 142 | 142 | |
| 143 | -        $this->app->singleton(Registry::class, function () { | 
                                                        |
| 143 | +        $this->app->singleton(Registry::class, function() { | 
                                                        |
| 144 | 144 | return new Registry([], [], new TaggedKeys());  | 
                                                        
| 145 | 145 | });  | 
                                                        
| 146 | 146 | |
| 147 | 147 | // Global chief nav singleton  | 
                                                        
| 148 | -        $this->app->singleton(Nav::class, function () { | 
                                                        |
| 148 | +        $this->app->singleton(Nav::class, function() { | 
                                                        |
| 149 | 149 | return new Nav();  | 
                                                        
| 150 | 150 | });  | 
                                                        
| 151 | 151 | |
| 152 | 152 | // Setup commands  | 
                                                        
| 153 | -        $this->app->bind(CreatePageCommand::class, function ($app) { | 
                                                        |
| 153 | +        $this->app->bind(CreatePageCommand::class, function($app) { | 
                                                        |
| 154 | 154 |              return new CreatePageCommand($app->make(FileManipulation::class), new SetupConfig(config('chief.setup', []))); | 
                                                        
| 155 | 155 | });  | 
                                                        
| 156 | 156 | |
| 157 | -        $this->app->bind(CreateFragmentCommand::class, function ($app) { | 
                                                        |
| 157 | +        $this->app->bind(CreateFragmentCommand::class, function($app) { | 
                                                        |
| 158 | 158 |              return new CreateFragmentCommand($app->make(FileManipulation::class), new SetupConfig(config('chief.setup', []))); | 
                                                        
| 159 | 159 | });  | 
                                                        
| 160 | 160 | |
@@ -191,7 +191,7 @@ discard block  | 
                                                    ||
| 191 | 191 | */  | 
                                                        
| 192 | 192 | private function setupEnvironmentProviders(): void  | 
                                                        
| 193 | 193 |      { | 
                                                        
| 194 | -        if (! $this->app->environment('production') && $services = config('app.providers-' . app()->environment(), false)) { | 
                                                        |
| 194 | +        if (!$this->app->environment('production') && $services = config('app.providers-'.app()->environment(), false)) { | 
                                                        |
| 195 | 195 |              foreach ($services as $service) { | 
                                                        
| 196 | 196 | $this->app->register($service);  | 
                                                        
| 197 | 197 | }  | 
                                                        
@@ -226,10 +226,10 @@ discard block  | 
                                                    ||
| 226 | 226 | private function registerSquanto(): void  | 
                                                        
| 227 | 227 |      { | 
                                                        
| 228 | 228 | // Project specific squanto files  | 
                                                        
| 229 | -        $this->app['view']->addNamespace('squanto', __DIR__ . '/../../resources/views/vendor/squanto'); | 
                                                        |
| 229 | +        $this->app['view']->addNamespace('squanto', __DIR__.'/../../resources/views/vendor/squanto'); | 
                                                        |
| 230 | 230 | |
| 231 | 231 | // Chief squanto defaults  | 
                                                        
| 232 | -        $this->app['view']->addNamespace('squanto', base_path() . '/resources/views/vendor/thinktomorrow/chief/vendor/squanto'); | 
                                                        |
| 232 | +        $this->app['view']->addNamespace('squanto', base_path().'/resources/views/vendor/thinktomorrow/chief/vendor/squanto'); | 
                                                        |
| 233 | 233 | |
| 234 | 234 | // Use the chief routing  | 
                                                        
| 235 | 235 | $this->app['config']['squanto.use_default_routes'] = false;  |