@@ -37,8 +37,8 @@ |
||
37 | 37 | public function boot(Router $router) |
38 | 38 | { |
39 | 39 | $this->loadViewsFrom(__DIR__.'/Views', 'installer'); |
40 | - $router->middlewareGroup('install', [CanInstall::class]); |
|
41 | - $router->middlewareGroup('update', [CanUpdate::class]); |
|
40 | + $router->middlewareGroup('install', [ CanInstall::class ]); |
|
41 | + $router->middlewareGroup('update', [ CanUpdate::class ]); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -31,6 +31,6 @@ |
||
31 | 31 | $response = $this->databaseManager->migrateAndSeed(); |
32 | 32 | |
33 | 33 | return redirect()->route('LaravelInstaller::final') |
34 | - ->with(['message' => $response]); |
|
34 | + ->with(['message' => $response]); |
|
35 | 35 | } |
36 | 36 | } |
@@ -31,6 +31,6 @@ |
||
31 | 31 | $response = $this->databaseManager->migrateAndSeed(); |
32 | 32 | |
33 | 33 | return redirect()->route('LaravelInstaller::final') |
34 | - ->with(['message' => $response]); |
|
34 | + ->with([ 'message' => $response ]); |
|
35 | 35 | } |
36 | 36 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $response = $databaseManager->migrateAndSeed(); |
48 | 48 | |
49 | 49 | return redirect()->route('LaravelUpdater::final') |
50 | - ->with(['message' => $response]); |
|
50 | + ->with(['message' => $response]); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $migrations = $this->getMigrations(); |
34 | 34 | $dbMigrations = $this->getExecutedMigrations(); |
35 | 35 | |
36 | - return view('installer::update.overview', ['numberOfUpdatesPending' => count($migrations) - count($dbMigrations)]); |
|
36 | + return view('installer::update.overview', [ 'numberOfUpdatesPending' => count($migrations) - count($dbMigrations) ]); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $response = $databaseManager->migrateAndSeed(); |
48 | 48 | |
49 | 49 | return redirect()->route('LaravelUpdater::final') |
50 | - ->with(['message' => $response]); |
|
50 | + ->with([ 'message' => $response ]); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | event(new EnvironmentSaved($input)); |
77 | 77 | |
78 | 78 | return $redirect->route('LaravelInstaller::environmentClassic') |
79 | - ->with(['message' => $message]); |
|
79 | + ->with([ 'message' => $message ]); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | return $redirect->route('LaravelInstaller::environmentWizard')->withInput()->withErrors($validator->errors()); |
100 | 100 | } |
101 | 101 | |
102 | - if (! $this->checkDatabaseConnection($request)) { |
|
102 | + if (!$this->checkDatabaseConnection($request)) { |
|
103 | 103 | return $redirect->route('LaravelInstaller::environmentWizard')->withInput()->withErrors([ |
104 | 104 | 'database_connection' => trans('installer_messages.environment.wizard.form.db_connection_failed'), |
105 | 105 | ]); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | event(new EnvironmentSaved($request)); |
111 | 111 | |
112 | 112 | return $redirect->route('LaravelInstaller::database') |
113 | - ->with(['results' => $results]); |
|
113 | + ->with([ 'results' => $results ]); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'install', 'as' => 'LaravelInstaller::', 'namespace' => 'Turahe\LaravelInstaller\Controllers', 'middleware' => ['web', 'install']], function () { |
|
16 | +Route::group([ 'prefix' => 'install', 'as' => 'LaravelInstaller::', 'namespace' => 'Turahe\LaravelInstaller\Controllers', 'middleware' => [ 'web', 'install' ] ], function() { |
|
17 | 17 | Route::get('/', [ |
18 | 18 | 'as' => 'welcome', |
19 | 19 | 'uses' => 'WelcomeController@welcome', |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | ]); |
66 | 66 | }); |
67 | 67 | |
68 | -Route::group(['prefix' => 'update', 'as' => 'LaravelUpdater::', 'namespace' => 'Turahe\LaravelInstaller\Controllers', 'middleware' => 'web'], function () { |
|
69 | - Route::group(['middleware' => 'update'], function () { |
|
68 | +Route::group([ 'prefix' => 'update', 'as' => 'LaravelUpdater::', 'namespace' => 'Turahe\LaravelInstaller\Controllers', 'middleware' => 'web' ], function() { |
|
69 | + Route::group([ 'middleware' => 'update' ], function() { |
|
70 | 70 | Route::get('/', [ |
71 | 71 | 'as' => 'welcome', |
72 | 72 | 'uses' => 'UpdateController@welcome', |