mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
717e8cf05c
commit
6c0aa790e5
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user