1
0
Fork 0
mirror of synced 2025-04-02 21:36:14 +03:00

Update class-wc-retailcrm-url-validator.php

Fix style
This commit is contained in:
Uryvskiy Dima 2024-09-26 16:58:22 +03:00 committed by GitHub
parent a5c17b8f7d
commit 74c1ec271b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,8 +174,10 @@ if (!class_exists('WC_Retailcrm_Url_Validator')) :
if (!$content instanceof WP_ERROR && $content['response']['code'] === 200) {
$domains = json_decode($content['body'], true);
return array_column($domains['domains'], 'domain');
}
return self::CRM_ALL_DOMAINS;
} catch (Exception $exception) {
throw new ValidatorException($this->getFileError);