Apply fixes from StyleCI

This commit is contained in:
Marcel Pociot
2021-05-21 15:21:13 +00:00
committed by StyleCI Bot
parent 717e8cf05c
commit 6c0aa790e5
9 changed files with 4 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ abstract class ServerAwareCommand extends Command
/**
* Try to find the server in the servers array.
* If no array exists at all (when upgrading from v1),
* always return sharedwithexpose.com
* always return sharedwithexpose.com.
*/
if (config('expose.servers') === null) {
return static::DEFAULT_HOSTNAME;
@@ -70,13 +70,12 @@ abstract class ServerAwareCommand extends Command
/**
* Try to find the server in the servers array.
* If no array exists at all (when upgrading from v1),
* always return sharedwithexpose.com
* always return sharedwithexpose.com.
*/
if (config('expose.servers') === null) {
return static::DEFAULT_PORT;
}
$server = $this->option('server');
$host = config('expose.servers.'.$server.'.port');