Skip to content

Commit

Permalink
Fixes double env usage
Browse files Browse the repository at this point in the history
  • Loading branch information
octoberapp committed Jul 23, 2023
1 parent 2c95583 commit faa45a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Foundation/Console/ProjectSetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function requestServerData(string $uri, array $postData = [])
*/
protected function createServerUrl($uri)
{
$gateway = env('APP_UPDATE_GATEWAY', Config::get('system.update_gateway', 'https://gateway.octobercms.com/api'));
$gateway = Config::get('system.update_gateway', 'https://gateway.octobercms.com/api');
if (substr($gateway, -1) != '/') {
$gateway .= '/';
}
Expand Down Expand Up @@ -189,7 +189,7 @@ protected function makeHttpRequest($url, $postData)
*/
protected function getComposerUrl(bool $withProtocol = true): string
{
$gateway = env('APP_COMPOSER_GATEWAY', Config::get('system.composer_gateway', 'gateway.octobercms.com'));
$gateway = Config::get('system.composer_gateway', 'gateway.octobercms.com');

return $withProtocol ? 'https://'.$gateway : $gateway;
}
Expand All @@ -214,7 +214,7 @@ protected function injectJsonToFile(string $filename, array $jsonArr, bool $merg
}

/**
* mergeRecursive substitues the native PHP array_merge_recursive to be
* mergeRecursive substitutes the native PHP array_merge_recursive to be
* more config friendly. Scalar values are replaced instead of being
* merged in to their own new array.
*/
Expand Down

0 comments on commit faa45a7

Please sign in to comment.