@@ -90,7 +90,7 @@ protected function checkEnvironment(): void
90
90
*/
91
91
protected function checkApplicationKey (): void
92
92
{
93
- if ( ! config ('app.key ' )) {
93
+ if (! config ('app.key ' )) {
94
94
$ this ->call ('key:generate ' );
95
95
}
96
96
@@ -103,7 +103,7 @@ protected function checkApplicationKey(): void
103
103
protected function checkAppUrl (): void
104
104
{
105
105
if (config ('app.url ' ) !== 'http://localhost ' ) {
106
- $ this ->info ('✓ Application url set to ' . config ('app.url ' ));
106
+ $ this ->info ('✓ Application url set to ' . config ('app.url ' ));
107
107
108
108
return ;
109
109
}
@@ -121,7 +121,7 @@ protected function checkDatabaseConnection(): void
121
121
$ this ->info ('✓ Database connection successful ' );
122
122
} catch (Exception $ e ) {
123
123
try {
124
- if ( ! $ this ->createDatabaseCredentials ()) {
124
+ if (! $ this ->createDatabaseCredentials ()) {
125
125
$ this ->error (
126
126
'A database connection could not be established. Please update your configuration and try again. '
127
127
);
@@ -144,7 +144,7 @@ protected function createDatabaseCredentials(): bool
144
144
true
145
145
);
146
146
147
- if ( ! $ storeCredentials ) {
147
+ if (! $ storeCredentials ) {
148
148
return false ;
149
149
}
150
150
@@ -211,7 +211,7 @@ protected function getCompanyName(): string
211
211
$ this ->line ('Creating first admin user account and company/workspace ' );
212
212
$ companyName = $ this ->ask ('Company/Workspace name ' );
213
213
214
- if ( ! $ companyName ) {
214
+ if (! $ companyName ) {
215
215
return $ this ->getCompanyName ();
216
216
}
217
217
@@ -271,7 +271,7 @@ protected function getUserParam(string $param): string
271
271
272
272
if ($ validator ->fails ()) {
273
273
foreach ($ validator ->errors ()->getMessages () as $ error ) {
274
- $ this ->line ((string )($ error [0 ]));
274
+ $ this ->line ((string ) ($ error [0 ]));
275
275
}
276
276
277
277
return $ this ->getUserParam ($ param );
@@ -312,7 +312,7 @@ protected function checkVendorAssets(): void
312
312
[
313
313
'--provider ' => SendportalBaseServiceProvider::class,
314
314
'--tag ' => 'sendportal-assets ' ,
315
- '--force ' => true
315
+ '--force ' => true ,
316
316
]
317
317
);
318
318
@@ -329,11 +329,11 @@ protected function printDatabaseConfig(): void
329
329
$ this ->line ('' );
330
330
$ this ->info ('Database Configuration: ' );
331
331
$ this ->line ("- Connection: {$ connection }" );
332
- $ this ->line ('- Host: ' . config ("database.connections. {$ connection }.host " ));
333
- $ this ->line ('- Port: ' . config ("database.connections. {$ connection }.port " ));
334
- $ this ->line ('- Database: ' . config ("database.connections. {$ connection }.database " ));
335
- $ this ->line ('- Username: ' . config ("database.connections. {$ connection }.username " ));
336
- $ this ->line ('- Password: ' . config ("database.connections. {$ connection }.password " ));
332
+ $ this ->line ('- Host: ' . config ("database.connections. {$ connection }.host " ));
333
+ $ this ->line ('- Port: ' . config ("database.connections. {$ connection }.port " ));
334
+ $ this ->line ('- Database: ' . config ("database.connections. {$ connection }.database " ));
335
+ $ this ->line ('- Username: ' . config ("database.connections. {$ connection }.username " ));
336
+ $ this ->line ('- Password: ' . config ("database.connections. {$ connection }.password " ));
337
337
}
338
338
339
339
/**
@@ -344,7 +344,7 @@ protected function persistVariables(array $connectionData): void
344
344
$ connection = $ connectionData ['DB_CONNECTION ' ];
345
345
346
346
$ configMap = [
347
- 'DB_CONNECTION ' => " database.default " ,
347
+ 'DB_CONNECTION ' => ' database.default ' ,
348
348
'DB_HOST ' => "database.connections. {$ connection }.host " ,
349
349
'DB_PORT ' => "database.connections. {$ connection }.port " ,
350
350
'DB_DATABASE ' => "database.connections. {$ connection }.database " ,
@@ -374,7 +374,7 @@ protected function writeToEnvironmentFile(string $key, ?string $value): void
374
374
)
375
375
);
376
376
377
- if ( ! $ this ->checkEnvValuePresent ($ key , $ value )) {
377
+ if (! $ this ->checkEnvValuePresent ($ key , $ value )) {
378
378
throw new RuntimeException ("Failed to persist environment variable value. {$ key }= {$ value }" );
379
379
}
380
380
}
0 commit comments