Skip to content

Commit ecbef32

Browse files
Merge pull request #7 from PureClarity/dev
Tweaks required to make Endpoints work correctly when in live mode
2 parents 0c7ebc0 + b9e87ba commit ecbef32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PureClarity/Api/Resource/Endpoints.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function getSignupStatusEndpoint($region)
7575
public function getClientScriptUrl($accessKey)
7676
{
7777
$pureclarityScriptUrl = getenv('PURECLARITY_SCRIPT_URL');
78-
if ($pureclarityScriptUrl === null || $pureclarityScriptUrl === '') {
78+
if (empty($pureclarityScriptUrl)) {
7979
$pureclarityScriptUrl = $this->scriptUrl;
8080
}
8181

@@ -119,7 +119,7 @@ private function getApiUrl($region)
119119
{
120120
$regionData = $this->getRegion($region);
121121
$host = getenv('PURECLARITY_HOST');
122-
if ($host === null || $host === '') {
122+
if (empty($host)) {
123123
$host = $regionData['endpoints']['api'];
124124
}
125125

0 commit comments

Comments
 (0)