We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0c7ebc0 + b9e87ba commit ecbef32Copy full SHA for ecbef32
src/PureClarity/Api/Resource/Endpoints.php
@@ -75,7 +75,7 @@ public function getSignupStatusEndpoint($region)
75
public function getClientScriptUrl($accessKey)
76
{
77
$pureclarityScriptUrl = getenv('PURECLARITY_SCRIPT_URL');
78
- if ($pureclarityScriptUrl === null || $pureclarityScriptUrl === '') {
+ if (empty($pureclarityScriptUrl)) {
79
$pureclarityScriptUrl = $this->scriptUrl;
80
}
81
@@ -119,7 +119,7 @@ private function getApiUrl($region)
119
120
$regionData = $this->getRegion($region);
121
$host = getenv('PURECLARITY_HOST');
122
- if ($host === null || $host === '') {
+ if (empty($host)) {
123
$host = $regionData['endpoints']['api'];
124
125
0 commit comments