Passed
Push — master ( 76dfee...aea1d0 )
by Nur
10:20
created
src/Providers/LaravelInstallerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Controllers/DatabaseController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Controllers/UpdateController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Controllers/EnvironmentController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Routes/web.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.